Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/SWBUniversalPlatform/Specs/Swift.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,8 @@
"objcxx-gnu++20" = ("-Xcc", "-std=$(CLANG_CXX_LANGUAGE_STANDARD)");
"objcxx-c++23" = ("-Xcc", "-std=$(CLANG_CXX_LANGUAGE_STANDARD)");
"objcxx-gnu++23" = ("-Xcc", "-std=$(CLANG_CXX_LANGUAGE_STANDARD)");
"objcxx-c++2b" = ("-Xcc", "-std=$(CLANG_CXX_LANGUAGE_STANDARD)");
"objcxx-gnu++2b" = ("-Xcc", "-std=$(CLANG_CXX_LANGUAGE_STANDARD)");
"<<otherwise>>" = ();
};
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4052,6 +4052,15 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests {
}
}

try await withTemporaryDirectory { tmpDir in
let tester = try await setupInteropTest(tmpDir, enableInterop: true, cxxLangStandard: "c++2b")
await tester.checkBuild(runDestination: .macOS) { results in
results.checkTask(.matchRuleType("SwiftDriver Compilation")) { task in
task.checkCommandLineContainsUninterrupted(["-Xcc", "-std=c++2b"])
}
}
}

// Verify that we don't pass C++ settings to Swift compilations when C++
// interoperability is disabled.
try await withTemporaryDirectory { tmpDir in
Expand Down
Loading