Skip to content

Commit 32ee2cc

Browse files
committed
[ASTGen] Build with -disable-target-os-checking
Temporarily workaround an availability issue with CxxStdlib.
1 parent 978a227 commit 32ee2cc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/ASTGen/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ set(compile_options
6767
"SHELL: ${cxx_interop_flag}"
6868
"SHELL: -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT"
6969

70+
# FIXME: Needed to work around an availability issue with CxxStdlib
71+
"SHELL: -Xfrontend -disable-target-os-checking"
72+
7073
# Necessary to avoid treating IBOutlet and IBAction as keywords
7174
"SHELL:-Xcc -UIBOutlet -Xcc -UIBAction -Xcc -UIBInspectable"
7275
)

lib/ASTGen/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ let swiftSetttings: [SwiftSetting] = [
3131
"-Xcc", "-I../../../build/Default/swift/include",
3232
"-Xcc", "-I../../../build/Default/llvm/include",
3333
"-Xcc", "-I../../../build/Default/llvm/tools/clang/include",
34+
35+
// FIXME: Needed to work around an availability issue with CxxStdlib
36+
"-Xfrontend", "-disable-target-os-checking",
3437
]),
3538
]
3639

3740
let package = Package(
3841
name: "swiftSwiftCompiler",
3942
platforms: [
40-
// We need at least macOS 13 here to avoid hitting an availability error
41-
// for CxxStdlib. It's only needed for the package though, the CMake build
42-
// works fine with a lower deployment target.
43-
.macOS(.v13)
43+
.macOS(.v10_15)
4444
],
4545
products: [
4646
.library(name: "swiftASTGen", targets: ["swiftASTGen"]),

0 commit comments

Comments
 (0)