mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: compiler options moved to .bazelrc
This commit is contained in:
3
.bazelrc
3
.bazelrc
@@ -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
|
||||
|
||||
3
.github/workflows/swift-qltest.yml
vendored
3
.github/workflows/swift-qltest.yml
vendored
@@ -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
|
||||
|
||||
@@ -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": [],
|
||||
|
||||
Reference in New Issue
Block a user