Skip to content

Commit 272aa59

Browse files
committed
Swift: compiler options moved to .bazelrc
1 parent 5db18bb commit 272aa59

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.bazelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
build --copt="-std=c++17"
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"
23

34
try-import %workspace%/local.bazelrc

.github/workflows/swift-qltest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jobs:
3232
- name: Build Swift extractor
3333
run: |
3434
bazel run //swift:create-extractor-pack
35-
env:
36-
CC: clang
37-
CXX: clang++
3835
- name: Run QL tests
3936
run: |
4037
codeql test run --threads=0 --ram 5000 --search-path "${{ github.workspace }}/swift/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition ql/test

swift/extractor/BUILD.bazel

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

0 commit comments

Comments
 (0)