diff --git a/scripts/setup-helper-functions.sh b/scripts/setup-helper-functions.sh index 14d5305a2da10..ac0fd09b28af1 100644 --- a/scripts/setup-helper-functions.sh +++ b/scripts/setup-helper-functions.sh @@ -130,6 +130,10 @@ function cmake_install { CPU_TARGET="${CPU_TARGET:-avx}" COMPILER_FLAGS=$(get_cxx_flags $CPU_TARGET) + if [ "${CPU_TARGET}" == "arm64" ]; then + INSTALL_PREFIX="/opt/homebrew" + fi + # CMAKE_POSITION_INDEPENDENT_CODE is required so that Velox can be built into dynamic libraries \ cmake -Wno-dev -B"${BINARY_DIR}" \ -GNinja \