From 35342ce969dc1a9af77d35ec7047fc36c6c57825 Mon Sep 17 00:00:00 2001 From: Christian Zentgraf Date: Mon, 10 Feb 2025 23:02:04 -0500 Subject: [PATCH] [native] Use NPROC variable in centos setup script The NPROC variable is set in the Velox sources setup script and unifies the usage of how many build threads are used by setting the BUILD_THREADS environment before the call to the setup scripts. --- presto-native-execution/scripts/setup-centos.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/presto-native-execution/scripts/setup-centos.sh b/presto-native-execution/scripts/setup-centos.sh index a52981f2c30fd..aa491333f64b6 100755 --- a/presto-native-execution/scripts/setup-centos.sh +++ b/presto-native-execution/scripts/setup-centos.sh @@ -14,7 +14,6 @@ set -e set -x -export nproc=$(getconf _NPROCESSORS_ONLN) export CC=/opt/rh/gcc-toolset-12/root/bin/gcc export CXX=/opt/rh/gcc-toolset-12/root/bin/g++ @@ -41,7 +40,7 @@ function install_gperf { tar ${TAR_OPTIONS} -xzf gperf-3.1.tar.gz && cd gperf-3.1 && ./configure --prefix=/usr/local/gperf/3_1 && - make "-j$(nproc)" && + make "-j${NPROC}" && make install if [ -f /usr/local/bin/gperf ]; then echo "Did not create '/usr/local/bin/gperf' symlink as file already exists."