1 parent 4915dbd commit 4818617Copy full SHA for 4818617
1 file changed
.github/scripts/build_upstream_rocksdb.sh
@@ -30,8 +30,9 @@ fi
30
# SIGILL on run hosts without AVX-512. Override e.g. PORTABLE=skylake-avx512.
31
export DEBUG_LEVEL="${DEBUG_LEVEL:-0}"
32
export PORTABLE="${PORTABLE:-haswell}"
33
-cd "$SRC_DIR"
+# Resolve script dir before cd: BASH_SOURCE may be a relative path.
34
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
35
+cd "$SRC_DIR"
36
python3 "$SCRIPT_DIR/patch_db_bench_time.py" "$SRC_DIR/tools/db_bench_tool.cc"
37
echo "Building upstream rocksdb with PORTABLE=${PORTABLE} DEBUG_LEVEL=${DEBUG_LEVEL}"
38
make db_bench memtablerep_bench -j"$(nproc)" DEBUG_LEVEL="$DEBUG_LEVEL" PORTABLE="$PORTABLE"
0 commit comments