зеркало из https://github.com/github/codeql.git
Swift: compiler options moved to .bazelrc
This commit is contained in:
Родитель
5db18bb845
Коммит
272aa594cc
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
|
||||
|
|
|
@ -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": [],
|
||||
|
|
Загрузка…
Ссылка в новой задаче