Skip to content

[ASTGen] Build with -disable-target-os-checking #69577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2023
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
3 changes: 3 additions & 0 deletions lib/ASTGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ set(compile_options
"SHELL: ${cxx_interop_flag}"
"SHELL: -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT"

# FIXME: Needed to work around an availability issue with CxxStdlib
"SHELL: -Xfrontend -disable-target-os-checking"

# Necessary to avoid treating IBOutlet and IBAction as keywords
"SHELL:-Xcc -UIBOutlet -Xcc -UIBAction -Xcc -UIBInspectable"
)
Expand Down
8 changes: 4 additions & 4 deletions lib/ASTGen/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ let swiftSetttings: [SwiftSetting] = [
"-Xcc", "-I../../../build/Default/swift/include",
"-Xcc", "-I../../../build/Default/llvm/include",
"-Xcc", "-I../../../build/Default/llvm/tools/clang/include",

// FIXME: Needed to work around an availability issue with CxxStdlib
"-Xfrontend", "-disable-target-os-checking",
]),
]

let package = Package(
name: "swiftSwiftCompiler",
platforms: [
// We need at least macOS 13 here to avoid hitting an availability error
// for CxxStdlib. It's only needed for the package though, the CMake build
// works fine with a lower deployment target.
.macOS(.v13)
.macOS(.v10_15)
],
products: [
.library(name: "swiftASTGen", targets: ["swiftASTGen"]),
Expand Down