c6d2a7f821
Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/4165 Differential Revision: D8955531 Pulled By: sagar0 fbshipit-source-id: 97d5a1375e200bde3c6414f94703504a4ed7536a
20 lines
472 B
Bash
Executable File
20 lines
472 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
rm -rf /rocksdb-local
|
|
cp -r /rocksdb-host /rocksdb-local
|
|
cd /rocksdb-local
|
|
|
|
# Use scl devtoolset if available (i.e. CentOS <7)
|
|
if hash scl 2>/dev/null; then
|
|
scl enable devtoolset-2 'make jclean clean'
|
|
scl enable devtoolset-2 'PORTABLE=1 make -j8 rocksdbjavastatic'
|
|
else
|
|
make jclean clean
|
|
PORTABLE=1 make -j8 rocksdbjavastatic
|
|
fi
|
|
|
|
cp java/target/librocksdbjni-linux*.so java/target/rocksdbjni-*-linux*.jar /rocksdb-host/java/target
|
|
|