Skip to content

Commit ba3875b

Browse files
committed
update
1 parent 06ef51e commit ba3875b

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

Sources/SWBWindowsPlatform/Windows.xcspec

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@
4242
BasedOn = com.apple.product-type.tool;
4343
},
4444

45-
{
46-
Domain = windows;
47-
Type = ProductType;
48-
Identifier = com.apple.product-type.application;
49-
BasedOn = com.apple.product-type.tool;
50-
},
51-
5245
{
5346
Domain = windows;
5447
Type = ProductType;

Tests/SWBCoreTests/SettingsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,7 +3553,7 @@ import SWBMacro
35533553
}
35543554

35553555
/// Check the behavior of user defined settings, especially w.r.t. quoting rules.
3556-
@Test(.requireSDKs(.host))
3556+
@Test(.requireSDKs(.macOS))
35573557
func buildDatabaseLocationOverride() async throws {
35583558
// Set up a trivial macOS project.
35593559
let testWorkspace = try await TestWorkspace("Workspace",

Tests/SWBTaskConstructionTests/TaskConstructionTests.swift

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4754,7 +4754,7 @@ fileprivate struct TaskConstructionTests: CoreBasedTests {
47544754
}
47554755

47564756
/// Check recursive header search paths.
4757-
@Test(.requireSDKs(.macOS))
4757+
@Test(.requireSDKs(.host))
47584758
func recursiveHeaderSearchPaths() async throws {
47594759
let testProject = TestProject(
47604760
"aProject",
@@ -4798,23 +4798,26 @@ fileprivate struct TaskConstructionTests: CoreBasedTests {
47984798
await tester.checkBuild(fs: fs) { results in
47994799
results.checkTarget("Tool") { target in
48004800
results.checkTask(.matchTarget(target), .matchRuleType("CompileC")) { task in
4801+
let buildProductsDirSuffix = RunDestinationInfo.host.builtProductsDirSuffix
48014802
let iQuoteArgs = task.commandLine.enumerated().filter { (i, arg) in
48024803
(task.commandLine[safe: i - 1]?.asString ?? "") == "-iquote"
48034804
}.map{ $0.1.asString }
48044805
let capIArgs = task.commandLine.filter{ $0.asString.hasPrefix("-I") }.map{ $0.asString }
48054806
let capFArgs = task.commandLine.filter{ $0.asString.hasPrefix("-F") }.map{ $0.asString }
48064807
#expect(iQuoteArgs == [
4807-
"User", "User/FooUser", "User/FooUser/Bar",
4808-
"/MissingPath", "OtherMissingPath"])
4808+
"User", Path("User/FooUser").str, Path("User/FooUser/Bar").str,
4809+
Path("/MissingPath").str, "OtherMissingPath"])
48094810
#expect(capIArgs == [
4810-
"-I\(SRCROOT)/build/Debug/include",
4811-
"-ISystem", "-ISystem/FooSystem", "-ISystem/FooSystem/Bar",
4812-
"-I\(SRCROOT)/build/aProject.build/Debug/Tool.build/DerivedSources-normal/x86_64",
4813-
"-I\(SRCROOT)/build/aProject.build/Debug/Tool.build/DerivedSources/x86_64",
4814-
"-I\(SRCROOT)/build/aProject.build/Debug/Tool.build/DerivedSources"])
4815-
#expect(capFArgs == [
4816-
"-F\(SRCROOT)/build/Debug",
4817-
"-FFramework", "-FFramework/FooFramework", "-FFramework/FooFramework/Bar"])
4811+
"-I\(Path(SRCROOT).join("build/Debug\(buildProductsDirSuffix)/include").str)",
4812+
"-ISystem", "-I\(Path("System/FooSystem").str)", "-I\(Path("System/FooSystem/Bar").str)",
4813+
"-I\(Path(SRCROOT).join("build/aProject.build/Debug\(buildProductsDirSuffix)/Tool.build/DerivedSources-normal/\(results.runDestinationTargetArchitecture)").str)",
4814+
"-I\(Path(SRCROOT).join("build/aProject.build/Debug\(buildProductsDirSuffix)/Tool.build/DerivedSources/\(results.runDestinationTargetArchitecture)").str)",
4815+
"-I\(Path(SRCROOT).join("build/aProject.build/Debug\(buildProductsDirSuffix)/Tool.build/DerivedSources").str)"])
4816+
if RunDestinationInfo.host == .macOS {
4817+
#expect(capFArgs == [
4818+
"-F\(SRCROOT)/build/Debug",
4819+
"-FFramework", "-FFramework/FooFramework", "-FFramework/FooFramework/Bar"])
4820+
}
48184821
}
48194822
}
48204823

0 commit comments

Comments
 (0)