Less is more: Don't force any specific build configuration
This commit is contained in:
parent
7e49b36198
commit
05706879a0
@ -2,27 +2,19 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
CMAKE_OPTIONS=${CMAKE_OPTIONS:-"-DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=On -DENABLE_MASON=On"}
|
CMAKE_OPTIONS=${CMAKE_OPTIONS:-"-DCMAKE_BUILD_TYPE=Release -DENABLE_NODE_BINDINGS=On"}
|
||||||
|
|
||||||
if [[ ! -f $(which cmake) ]]; then
|
if [[ ! -f $(which cmake) ]]; then
|
||||||
echo "Needs cmake to build from source"
|
echo "Needs cmake to build from source"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ ! -f $(which clang) ]]; then
|
|
||||||
echo "Needs clang to build from source"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ ! -f $(which clang++) ]]; then
|
|
||||||
echo "Needs clang++ to build from source"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d build ]]; then
|
if [[ -d build ]]; then
|
||||||
echo "Detected existing build directory, skipping compiling."
|
echo "Detected existing build directory, skipping compiling."
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
pushd build
|
pushd build
|
||||||
CXX=clang++ CC=clang cmake .. $CMAKE_OPTIONS
|
cmake .. $CMAKE_OPTIONS
|
||||||
|
cmake --build .
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user