mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
6c2bf9e916
Summary: internal task: T35568575 Pull Request resolved: https://github.com/facebook/rocksdb/pull/5199 Differential Revision: D14962794 Pulled By: gfosco fbshipit-source-id: 93838ede6d0235eaecff90d200faed9a8515bbbe
30 lines
815 B
Bash
Executable file
30 lines
815 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
|
|
set -e
|
|
#set -x
|
|
|
|
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
|
|
if scl --list | grep -q 'devtoolset-7'; then
|
|
scl enable devtoolset-7 'make jclean clean'
|
|
scl enable devtoolset-7 'PORTABLE=1 make -j6 rocksdbjavastatic'
|
|
elif scl --list | grep -q 'devtoolset-2'; then
|
|
scl enable devtoolset-2 'make jclean clean'
|
|
scl enable devtoolset-2 'PORTABLE=1 make -j6 rocksdbjavastatic'
|
|
else
|
|
echo "Could not find devtoolset"
|
|
exit 1;
|
|
fi
|
|
else
|
|
make jclean clean
|
|
PORTABLE=1 make -j6 rocksdbjavastatic
|
|
fi
|
|
|
|
cp java/target/librocksdbjni-linux*.so java/target/rocksdbjni-*-linux*.jar /rocksdb-host/java/target
|
|
|