summaryrefslogtreecommitdiff
path: root/libs/libmdbx/src/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libmdbx/src/build.sh')
-rw-r--r--libs/libmdbx/src/build.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/libmdbx/src/build.sh b/libs/libmdbx/src/build.sh
new file mode 100644
index 0000000000..5170882265
--- /dev/null
+++ b/libs/libmdbx/src/build.sh
@@ -0,0 +1,18 @@
+#!/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