Skip to content

Commit

Permalink
Correct INSTALL_PREFIX for arm64 target
Browse files Browse the repository at this point in the history
  • Loading branch information
nmahadevuni authored and Mahadevuni Naveen Kumar committed May 12, 2023
1 parent 2190612 commit 3b9678d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/setup-helper-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3b9678d

Please sign in to comment.