mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: set compiler flags explicitly
This commit is contained in:
3
.bazelrc
3
.bazelrc
@@ -1,4 +1,3 @@
|
||||
# -fno-rtti is required by LLVM/Swift
|
||||
build --repo_env=CC=clang --repo_env=CXX=clang++ --copt="-std=c++17" --copt="-fno-rtti"
|
||||
build --repo_env=CC=clang --repo_env=CXX=clang++ --copt="-std=c++17"
|
||||
|
||||
try-import %workspace%/local.bazelrc
|
||||
|
||||
@@ -14,6 +14,10 @@ cc_binary(
|
||||
"SwiftExtractorConfiguration.h",
|
||||
"main.cpp",
|
||||
],
|
||||
copts = [
|
||||
# Required by LLVM/Swift
|
||||
"-fno-rtti",
|
||||
],
|
||||
target_compatible_with = select({
|
||||
"@platforms//os:linux": [],
|
||||
"@platforms//os:macos": [],
|
||||
|
||||
Reference in New Issue
Block a user