attempt to fix macos if

This commit is contained in:
Ben 2024-08-20 10:12:04 +02:00
parent ab9bdabc3c
commit 5c08eca9e9
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B

View File

@ -37,7 +37,7 @@ jobs:
run: nimble install -y
- name: Build and run tests
run: |
if [[ ${{ matrix.platform.os }} = macos ]]; then
if [[ '${{ matrix.platform.os }}' == 'macos' ]]; then
export PATH="$(brew --prefix llvm@14)/bin:${PATH}"
export LDFLAGS="-L$(brew --prefix libomp)/lib -L$(brew --prefix llvm@14)/lib -Wl,-rpath,$(brew --prefix llvm@14)/lib"
compiler_extra_options="-d:LeopardCmakeFlags='-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=$(brew --prefix llvm@14)/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@14)/bin/clang++' -d:LeopardExtraCompilerlags='-fopenmp' -d:LeopardExtraLinkerFlags='-fopenmp -L$(brew --prefix libomp)/lib'"