Skip to content

Commit 61ad2ce

Browse files
committed
Adjust arguments based on move of SwiftPM's module output directory
1 parent b7cc49b commit 61ad2ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SKSwiftPMWorkspace/SwiftPMWorkspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ extension SwiftPMWorkspace {
449449
}
450450
args += ["-c"]
451451
args += td.sources.map { $0.pathString }
452-
args += ["-I", buildPath.pathString]
452+
args += ["-I", td.moduleOutputPath.parentDirectory.pathString]
453453
args += try td.compileArguments()
454454

455455
return FileBuildSettings(

Tests/SKSwiftPMWorkspaceTests/SwiftPMWorkspaceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
159159
check("-target", hostTriple.tripleString, arguments: arguments)
160160
#endif
161161

162-
check("-I", build.pathString, arguments: arguments)
162+
check("-I", build.appending(component: "Modules").pathString, arguments: arguments)
163163

164164
check(aswift.pathString, arguments: arguments)
165165
}

0 commit comments

Comments
 (0)