Skip to content

Commit

Permalink
use MAKE variable when available, which can set -j
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Jun 4, 2024
1 parent 2879227 commit e34c8e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build_static_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ REPO_DIR="${PWD}"
ROCKSDB_LIB_DIR="${REPO_DIR}/vendor/rocksdb"
BUILD_DEST="${REPO_DIR}/build/lib"


: "${MAKE:=make}"

[[ -z "$NPROC" ]] && NPROC=2 # number of CPU cores available

Expand All @@ -32,12 +32,12 @@ export ROCKSDB_DISABLE_BZIP=1
export PORTABLE=1
export DEBUG_LEVEL=0

make -C "${ROCKSDB_LIB_DIR}" -j${NPROC} liblz4.a libzstd.a --no-print-directory > /dev/null
${MAKE} -C "${ROCKSDB_LIB_DIR}" liblz4.a libzstd.a --no-print-directory > /dev/null

export EXTRA_CFLAGS="-fpermissive -Wno-error -w -I${ROCKSDB_LIB_DIR}/lz4-1.9.4/lib -I${ROCKSDB_LIB_DIR}/zstd-1.5.5/lib -DLZ4 -DZSTD"
export EXTRA_CXXFLAGS="-fpermissive -Wno-error -w -I${ROCKSDB_LIB_DIR}/lz4-1.9.4/lib -I${ROCKSDB_LIB_DIR}/zstd-1.5.5/lib -DLZ4 -DZSTD"

make -C "${ROCKSDB_LIB_DIR}" -j${NPROC} static_lib --no-print-directory > /dev/null
${MAKE} -C "${ROCKSDB_LIB_DIR}" static_lib --no-print-directory > /dev/null

#cat "${REPO_DIR}/vendor/rocksdb/make_config.mk"

Expand Down

0 comments on commit e34c8e8

Please sign in to comment.