Skip to content

Commit

Permalink
Patch x86_64-apple-clang.cmake
Browse files Browse the repository at this point in the history
This commit intends to fix a compilation error related with this issue AztecProtocol/barretenberg#66 that causes this crate build to fail.
  • Loading branch information
ilitteri committed Oct 21, 2022
1 parent 7cc9f98 commit 94a21a9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions barretenberg/cmake/toolchains/x86_64-apple-clang.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
set(CMAKE_CXX_COMPILER $ENV{CXX})
set(CMAKE_C_COMPILER $ENV{CC})
if(APPLE_M1)
set(CMAKE_CXX_COMPILER "/opt/homebrew/opt/llvm/bin/clang++")
set(CMAKE_C_COMPILER "/opt/homebrew/opt/llvm/bin/clang")
set(DISABLE_ASM ON)
else()
set(CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang++")
set(CMAKE_C_COMPILER "/usr/local/opt/llvm/bin/clang")
endif()
endif()

0 comments on commit 94a21a9

Please sign in to comment.