diff --git a/recipe/bld.bat b/recipe/bld.bat index 77220c77..0aac8361 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -26,6 +26,7 @@ cmake -G "Ninja" ^ -DLLVM_INCLUDE_TESTS=ON ^ -DLLVM_INCLUDE_UTILS=ON ^ -DLLVM_INSTALL_UTILS=ON ^ + -DLLVM_TARGETS_TO_BUILD="X86;AArch64" ^ -DLLVM_USE_SYMLINKS=OFF ^ -DLLVM_UTILS_INSTALL_DIR=libexec\llvm ^ -DLLVM_BUILD_LLVM_C_DYLIB=ON ^ diff --git a/recipe/build.sh b/recipe/build.sh index c3128ec0..e50cc56a 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -15,7 +15,7 @@ elif [[ "$target_platform" == osx-* ]]; then # https://github.com/llvm/llvm-project/blob/llvmorg-16.0.6/llvm/tools/llvm-shlib/CMakeLists.txt#L82-L85 # currently off though, because it doesn't build yet # CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_BUILD_LLVM_C_DYLIB=ON" - true + CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_TARGETS_TO_BUILD=\"X86;AArch64\"" fi if [[ "$CC_FOR_BUILD" != "" && "$CC_FOR_BUILD" != "$CC" ]]; then