mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
da98692273
Change-Id: I32a9746cfa0124e359010cb2688bd08214c6516f
19 lines
376 B
Bash
Executable File
19 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
CONFIG=$1
|
|
|
|
if [[ -z "${CONFIG}" ]]; then
|
|
CONFIG=Debug
|
|
fi
|
|
if [[ -r /opt/rh/devtoolset-6/enable ]]; then
|
|
source /opt/rh/devtoolset-6/enable
|
|
fi
|
|
#rm -f -r build || true
|
|
mkdir -p cmake-build-${CONFIG}
|
|
pushd cmake-build-${CONFIG} &> /dev/null
|
|
if [[ ! -r Makefile ]]; then
|
|
cmake .. -DCMAKE_BUILD_TYPE=${CONFIG}
|
|
fi
|
|
make -j8 || exit 1
|
|
popd &> /dev/null
|