diff --git a/ep/build-velox/src/setup-centos7.sh b/ep/build-velox/src/setup-centos7.sh index 34d7bcfb65c5..708c692ea582 100755 --- a/ep/build-velox/src/setup-centos7.sh +++ b/ep/build-velox/src/setup-centos7.sh @@ -17,7 +17,7 @@ set -efx -o pipefail # Some of the packages must be build with the same compiler flags # so that some low level types are the same size. Also, disable warnings. -SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")/../build/velox_ep/scripts +SCRIPTDIR=./scripts source $SCRIPTDIR/setup-helper-functions.sh DEPENDENCY_DIR=${DEPENDENCY_DIR:-/tmp/velox-deps} CPU_TARGET="${CPU_TARGET:-avx}" diff --git a/ep/build-velox/src/setup-centos8.sh b/ep/build-velox/src/setup-centos8.sh index 771c2ab835df..4094256968e3 100755 --- a/ep/build-velox/src/setup-centos8.sh +++ b/ep/build-velox/src/setup-centos8.sh @@ -29,7 +29,7 @@ set -efx -o pipefail # Some of the packages must be build with the same compiler flags # so that some low level types are the same size. Also, disable warnings. -SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")/../build/velox_ep/scripts +SCRIPTDIR=./scripts source $SCRIPTDIR/setup-helper-functions.sh CPU_TARGET="${CPU_TARGET:-avx}" NPROC=$(getconf _NPROCESSORS_ONLN)