Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6c51e1

Browse files
committed
Swift: build with Clang on Linux
1 parent 62d36a2 commit c6c51e1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/swift-qltest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
if: runner.os == 'Linux'
3333
run: |
3434
sudo apt-get update
35-
sudo apt-get install -y wget
35+
sudo apt-get install -y wget clang
3636
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64
3737
mv bazelisk-linux-amd64 /usr/local/bin/bazel
3838
chmod +x /usr/local/bin/bazel
@@ -43,6 +43,9 @@ jobs:
4343
- name: Build Swift extractor
4444
run: |
4545
bazel run //swift:create-extractor-pack
46+
env:
47+
CC: clang
48+
CXX: clang++
4649
- name: Run QL tests
4750
run: |
4851
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

0 commit comments

Comments
 (0)