diff --git a/.bazelrc b/.bazelrc index 2c292867234..9a58b60c3ef 100644 --- a/.bazelrc +++ b/.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 diff --git a/swift/extractor/BUILD.bazel b/swift/extractor/BUILD.bazel index 785bc83f030..34660b035d2 100644 --- a/swift/extractor/BUILD.bazel +++ b/swift/extractor/BUILD.bazel @@ -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": [],