Skip to content

Commit

Permalink
Merge branch 'develop' into plonk
Browse files Browse the repository at this point in the history
  • Loading branch information
Vesselin Velichkov committed Jan 25, 2023
2 parents f2a21f2 + 4e2b24c commit 26cfe45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: install-dependencies-macos
if: matrix.os == 'macos-11'
run: |
brew link llvm@14
brew link llvm@15
which clang
clang --version
brew install ${MACOS_BREW_PACKAGES}
Expand Down
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.13)

# Change the compiler BEFORE the first `project()` command to avoid an infinite loop.
# See: https://public.kitware.com/pipermail/cmake/2009-November/033133.html
if(APPLE)
# If custom llvm compilers are available, use them (for openmp support),
# otherwise disable multicore.
find_program(CLANG_CMD "clang" HINTS /usr/local/opt/llvm/bin)
if(CLANG_CMD)
set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
if (NOT DEFINED CMAKE_CXX_COMPILER)
# If custom llvm compilers are available, use them (for openmp support),
# otherwise disable multicore.
find_program(CLANG_CMD "clang" HINTS /usr/local/opt/llvm/bin)
if(CLANG_CMD)
set(CMAKE_C_COMPILER ${CLANG_CMD})
set(CMAKE_CXX_COMPILER ${CLANG_CMD}++)
endif()
endif()
endif()

Expand Down

0 comments on commit 26cfe45

Please sign in to comment.