Skip to content

Commit

Permalink
Update setup_clang.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jun 4, 2022
1 parent 216388b commit db15f11
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
tar xzf swift-5.6.1-RELEASE-ubuntu20.04.tar.gz
echo "$(pwd)/swift-5.6.1-RELEASE-ubuntu20.04/usr/bin" >> $GITHUB_PATH
- name: Setup clang
run: |
./bazel/setup_clang.sh
echo "build --config=clang" >> "${GITHUB_WORKSPACE}/.bazelrc"
echo "try-import %workspace%/clang.bazelrc" >> "${GITHUB_WORKSPACE}/.bazelrc"
- name: Clean up documentation branch
run: |
git branch -D documentation || true
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ubuntu-bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Setup clang
run: |
./bazel/setup_clang.sh
echo "build --config=clang" >> "${GITHUB_WORKSPACE}/.bazelrc"
echo "try-import %workspace%/clang.bazelrc" >> "${GITHUB_WORKSPACE}/.bazelrc"
- name: Run tests
run: |
"${GITHUB_WORKSPACE}/bin/bazel" test --test_output=errors //src/tests:Tests
3 changes: 3 additions & 0 deletions bazel/setup_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ build:clang-asan --linkopt=-fsanitize=vptr,function
build:clang-asan --linkopt='-L${RT_LIBRARY_PATH}'
build:clang-asan --linkopt=-l:libclang_rt.ubsan_standalone-x86_64.a
build:clang-asan --linkopt=-l:libclang_rt.ubsan_standalone_cxx-x86_64.a
build --linkopt="-z nostart-stop-gc"
build --host_linkopt="-z nostart-stop-gc"
" > ${BAZELRC_FILE}

0 comments on commit db15f11

Please sign in to comment.