Skip to content

Commit

Permalink
set all llvm targets when compiling for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis authored May 22, 2024
1 parent da82c01 commit 3983321
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion qirlib/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ endif()

set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "")

set(LLVM_TARGETS_TO_BUILD "Native" CACHE STRING "")
message(STATUS CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES})

if(APPLE)
set(LLVM_TARGETS_TO_BUILD X86 ARM AArch64 CACHE STRING "")
else()
set(LLVM_TARGETS_TO_BUILD "Native" CACHE STRING "")
endif()

message(STATUS LLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD})

set(PACKAGE_VENDOR LLVM.org CACHE STRING "")

Expand Down

0 comments on commit 3983321

Please sign in to comment.