Skip to content

Commit

Permalink
DISABLE_PERF_CONTEXT in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuehappy committed Jul 22, 2024
1 parent 956b005 commit f646cba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion java/crossbuild/docker-build-linux-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ cp -r /rocksdb-host/* /rocksdb-local-build
cd /rocksdb-local-build

make clean-not-downloaded
PORTABLE=1 make -j2 rocksdbjavastatic
PORTABLE=1 DISABLE_PERF_CONTEXT=1 make -j2 rocksdbjavastatic

cp java/target/librocksdbjni-linux*.so java/target/rocksdbjni-*-linux*.jar java/target/rocksdbjni-*-linux*.jar.sha1 /rocksdb-java-target
9 changes: 5 additions & 4 deletions java/crossbuild/docker-build-linux-centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ if hash scl 2>/dev/null; then
if scl --list | grep -q 'devtoolset-8'; then
# CentOS 6+
scl enable devtoolset-8 'make clean-not-downloaded'
scl enable devtoolset-8 'PORTABLE=1 make -j2 rocksdbjavastatic'
scl enable devtoolset-8 'PORTABLE=1 DISABLE_PERF_CONTEXT=1 make -j2 rocksdbjavastatic'
elif scl --list | grep -q 'devtoolset-7'; then
# CentOS 6+
scl enable devtoolset-7 'make clean-not-downloaded'
scl enable devtoolset-7 'PORTABLE=1 make -j2 rocksdbjavastatic'
scl enable devtoolset-7 'PORTABLE=1 DISABLE_PERF_CONTEXT=1 make -j2 rocksdbjavastatic'
elif scl --list | grep -q 'devtoolset-2'; then
# CentOS 5 or 6
scl enable devtoolset-2 'make clean-not-downloaded'
scl enable devtoolset-2 'PORTABLE=1 make -j2 rocksdbjavastatic'
scl enable devtoolset-2 'PORTABLE=1 DISABLE_PERF_CONTEXT=1 make -j2 rocksdbjavastatic'
else
echo "Could not find devtoolset"
exit 1;
fi
else
make clean-not-downloaded
PORTABLE=1 make -j2 rocksdbjavastatic
echo "PORTABLE=1 DISABLE_PERF_CONTEXT=1 make -j2 rocksdbjavastatic"
PORTABLE=1 DISABLE_PERF_CONTEXT=1 make -j2 rocksdbjavastatic
fi

cp java/target/librocksdbjni-linux*.so java/target/rocksdbjni-*-linux*.jar java/target/rocksdbjni-*-linux*.jar.sha1 /rocksdb-java-target
Expand Down

0 comments on commit f646cba

Please sign in to comment.