diff --git a/Sources/GenIR/GenIR.swift b/Sources/GenIR/GenIR.swift index 605bfe5..58694a0 100644 --- a/Sources/GenIR/GenIR.swift +++ b/Sources/GenIR/GenIR.swift @@ -98,11 +98,19 @@ struct IREmitterCommand: ParsableCommand { log: logPath, archive: xcarchivePath, level: logger.logLevel, - dryRun: dryRun + dryRun: dryRun, + dumpDependencyGraph: dumpDependencyGraph ) } - mutating func run(project: URL, log: String, archive: URL, level: Logger.Level, dryRun: Bool) throws { + mutating func run( + project: URL, + log: String, + archive: URL, + level: Logger.Level, + dryRun: Bool, + dumpDependencyGraph: Bool + ) throws { let output = archive.appendingPathComponent("IR") let project = try ProjectParser(path: project, logLevel: level) var targets = Targets(for: project) diff --git a/Tests/GenIRTests/OutputPostprocessorFileMoverTests.swift b/Tests/GenIRTests/OutputPostprocessorFileMoverTests.swift index 7e927be..b4ca4e8 100644 --- a/Tests/GenIRTests/OutputPostprocessorFileMoverTests.swift +++ b/Tests/GenIRTests/OutputPostprocessorFileMoverTests.swift @@ -20,7 +20,8 @@ final class OutputPostprocessorFileMoverTests: XCTestCase { log: context.buildLog.filePath, archive: context.archive, level: .debug, - dryRun: false + dryRun: false, + dumpDependencyGraph: false ) // Check the output path for unique Image files diff --git a/Tests/GenIRTests/UmbrellaTests.swift b/Tests/GenIRTests/UmbrellaTests.swift index ed8064b..167b05f 100644 --- a/Tests/GenIRTests/UmbrellaTests.swift +++ b/Tests/GenIRTests/UmbrellaTests.swift @@ -51,7 +51,8 @@ final class UmbrellaTests: XCTestCase { log: context.buildLog.filePath, archive: context.archive, level: .debug, - dryRun: false + dryRun: false, + dumpDependencyGraph: false ) let directories = try FileManager.default.directories(at: output, recursive: false) @@ -82,7 +83,8 @@ final class UmbrellaTests: XCTestCase { log: context.buildLog.filePath, archive: context.archive, level: .debug, - dryRun: false + dryRun: false, + dumpDependencyGraph: false ) let directories = try FileManager.default.directories(at: output, recursive: false) diff --git a/Tests/GenIRTests/WorkspaceTests.swift b/Tests/GenIRTests/WorkspaceTests.swift index 9979666..7c2851a 100644 --- a/Tests/GenIRTests/WorkspaceTests.swift +++ b/Tests/GenIRTests/WorkspaceTests.swift @@ -54,7 +54,6 @@ final class WorkspaceTests: XCTestCase { let process = try context.build(test: Self.testPath, scheme: Self.scheme) XCTAssertEqual(process.code, 0, "Build returned non-zero exit code") - let output = context.archive.appendingPathComponent("IR") var genIR = gen_ir.IREmitterCommand() try genIR.run( @@ -62,7 +61,8 @@ final class WorkspaceTests: XCTestCase { log: context.buildLog.filePath, archive: context.archive, level: .debug, - dryRun: false + dryRun: false, + dumpDependencyGraph: false ) // Check dependencies made it to the right place