Swift: compiler options moved to .bazelrc

This commit is contained in:
Alex Denisov
2022-04-27 17:11:16 +02:00
parent 5db18bb845
commit 272aa594cc
3 changed files with 2 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
build --copt="-std=c++17"
# -fno-rtti is required by LLVM/Swift
build --repo_env=CC=clang --repo_env=CXX=clang++ --copt="-std=c++17" --copt="-fno-rtti"
try-import %workspace%/local.bazelrc

View File

@@ -32,9 +32,6 @@ jobs:
- name: Build Swift extractor
run: |
bazel run //swift:create-extractor-pack
env:
CC: clang
CXX: clang++
- name: Run QL tests
run: |
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

View File

@@ -14,10 +14,6 @@ cc_binary(
"SwiftExtractorConfiguration.h",
"main.cpp",
],
copts = [
# Required by LLVM/Swift
"-fno-rtti",
],
target_compatible_with = select({
"@platforms//os:linux": [],
"@platforms//os:macos": [],