mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-05-03 21:40:33 +00:00
More minor improvements to scripts.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[ ! -d build ] && mkdir build
|
||||
|
||||
echo "Configuring..."
|
||||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./Release
|
||||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./Release $@
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "CMake failed. Aborting."
|
||||
@@ -10,9 +10,13 @@ else
|
||||
echo "CMake succeeded."
|
||||
fi
|
||||
|
||||
echo "Building..."
|
||||
if [ -z "$THREADS" ]; then
|
||||
THREADS=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
|
||||
fi
|
||||
|
||||
echo "Building with $THREADS threads..."
|
||||
cd build
|
||||
make
|
||||
make -j$THREADS
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Build failed. Aborting."
|
||||
|
||||
+7
-3
@@ -1,7 +1,7 @@
|
||||
[ ! -d build ] && mkdir build
|
||||
|
||||
echo "Configuring..."
|
||||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/
|
||||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/ $@
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "CMake failed. Aborting."
|
||||
@@ -10,9 +10,13 @@ else
|
||||
echo "CMake succeeded."
|
||||
fi
|
||||
|
||||
echo "Building..."
|
||||
if [ -z "$THREADS" ]; then
|
||||
THREADS=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
|
||||
fi
|
||||
|
||||
echo "Building with $THREADS threads..."
|
||||
cd build
|
||||
make
|
||||
make -j$THREADS
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Build failed. Aborting."
|
||||
|
||||
Reference in New Issue
Block a user