diff --git a/qirlib/config.cmake b/qirlib/config.cmake index 6b3445b9..0abfc5fa 100644 --- a/qirlib/config.cmake +++ b/qirlib/config.cmake @@ -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 "")