Swift: set compiler flags explicitly

This commit is contained in:
Alex Denisov
2022-04-28 13:17:05 +02:00
parent f4104e2b72
commit 4a03976a15
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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": [],