Skip to content

Commit 7582422

Browse files
committed
Fix -I argument to module output directory
1 parent 8284092 commit 7582422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Build/BuildPlan/BuildPlan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public class BuildPlan: SPMBuildCore.BuildPlan {
471471
for target in targets {
472472
switch target {
473473
case .swift(let targetDescription):
474-
arguments += ["-I", targetDescription.moduleOutputPath.pathString]
474+
arguments += ["-I", targetDescription.moduleOutputPath.parentDirectory.pathString]
475475
case .clang(let targetDescription):
476476
if let includeDir = targetDescription.moduleMap?.parentDirectory {
477477
arguments += ["-I", includeDir.pathString]

0 commit comments

Comments
 (0)