Skip to content

Commit e788fa1

Browse files
committed
Update test_symbolGraphExtract_arguments for new header search strategy
Also lift the macOS restriction now that swiftpm emits the compatibility header on other platforms.
1 parent c96a621 commit e788fa1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/BuildTests/BuildPlanTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ class BuildPlanTestCase: BuildSystemProviderTestCase {
21272127

21282128
// D
21292129
do {
2130-
let expectedBModuleMap = AbsolutePath("/path/to/build/\(triple)/debug/B.build/module.modulemap").pathString
2130+
let expectedBInclude = AbsolutePath("/path/to/build/\(triple)/debug/B.build/include/").pathString
21312131
let expectedCModuleMap = AbsolutePath("/path/to/build/\(triple)/debug/C.build/module.modulemap").pathString
21322132
let expectedDModuleMap = AbsolutePath("/path/to/build/\(triple)/debug/D.build/module.modulemap").pathString
21332133
let expectedModuleCache = AbsolutePath("/path/to/build/\(triple)/debug/ModuleCache").pathString
@@ -2149,13 +2149,11 @@ class BuildPlanTestCase: BuildSystemProviderTestCase {
21492149
]
21502150
)
21512151

2152-
#if os(macOS)
21532152
try XCTAssertMatchesSubSequences(
21542153
result.moduleBuildDescription(for: "D").symbolGraphExtractArguments(),
21552154
// Swift Module dependencies
2156-
["-Xcc", "-fmodule-map-file=\(expectedBModuleMap)"]
2155+
["-Xcc", "-I", "-Xcc", "\(expectedBInclude)"]
21572156
)
2158-
#endif
21592157
}
21602158
}
21612159

0 commit comments

Comments
 (0)