From 3b9678db73d7b05a9621c96529d147111c0b938f Mon Sep 17 00:00:00 2001 From: Mahadevuni Naveen Kumar Date: Fri, 12 May 2023 11:08:31 +0530 Subject: [PATCH] Correct INSTALL_PREFIX for arm64 target --- scripts/setup-helper-functions.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 \