Skip to content

Commit

Permalink
Compile/link using libc++ and libomp
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Jan 14, 2025
1 parent 0679174 commit 17ad556
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/clang_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- uses: actions/checkout@v4
- name: install dependencies
run: |
.github/workflows/dependencies/clang.sh 19
.github/workflows/dependencies/clang.sh 17
- name: CCache Cache
uses: actions/cache@v4
with:
Expand All @@ -104,7 +104,10 @@ jobs:
export CXX=$(which clang++-17)
export CC=$(which clang-17)
export CXXFLAGS="-fsanitize=thread"
# Ensure that compiler uses libc++ and libomp
export CXXFLAGS="-fsanitize=thread -stdlib=libc++ -fopenmp=libomp"
# Ensure that linker uses libc++ and links against libomp
export LDFLAGS="-stdlib=libc++ -L/usr/lib/llvm-17/lib -lomp"
cmake -S . -B build \
-GNinja \
Expand Down

0 comments on commit 17ad556

Please sign in to comment.