Skip to content

Commit 4a03976

Browse files
committed
Swift: set compiler flags explicitly
1 parent f4104e2 commit 4a03976

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.bazelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -fno-rtti is required by LLVM/Swift
2-
build --repo_env=CC=clang --repo_env=CXX=clang++ --copt="-std=c++17" --copt="-fno-rtti"
1+
build --repo_env=CC=clang --repo_env=CXX=clang++ --copt="-std=c++17"
32

43
try-import %workspace%/local.bazelrc

swift/extractor/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ cc_binary(
1414
"SwiftExtractorConfiguration.h",
1515
"main.cpp",
1616
],
17+
copts = [
18+
# Required by LLVM/Swift
19+
"-fno-rtti",
20+
],
1721
target_compatible_with = select({
1822
"@platforms//os:linux": [],
1923
"@platforms//os:macos": [],

0 commit comments

Comments
 (0)