From a7580122dc9cce46fd5b66d4423d71657a7614a5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 May 2025 13:28:54 +1200 Subject: [PATCH] . --- .gitignore | 2 ++ compile.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d3bef0b..7fe554b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # Build directories build/ cmake-build-*/ +build-*/ + # CMake generated files CMakeCache.txt diff --git a/compile.sh b/compile.sh index 907cd66..8dfd2fd 100755 --- a/compile.sh +++ b/compile.sh @@ -7,7 +7,6 @@ set -e SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) CACHE_DIR="${SCRIPT_DIR}/cache" EXE_DIR="${SCRIPT_DIR}/exe" -BUILD_DIR="${SCRIPT_DIR}/build" # FUNCTIONS function title() { @@ -31,7 +30,8 @@ function die() { function build() { ARCH=$1 - BUILD_DIR="${SCRIPT_DIR}/build-${ARCH}" + BUILD_NAME="build-${ARCH}" + BUILD_DIR="${SCRIPT_DIR}/${BUILD_NAME}" mkdir -p ${BUILD_DIR} DOCKCROSS_SCRIPT="${CACHE_DIR}/dockcross-${ARCH}" @@ -44,7 +44,7 @@ function build() { echo "Building $ARCH executable" cd "${SCRIPT_DIR}" - "${DOCKCROSS_SCRIPT}" bash -c "cd ${BUILD_DIR} && cmake .. && make -j$(nproc)" + "${DOCKCROSS_SCRIPT}" bash -c "cd ${BUILD_NAME} && cmake .. && make -j$(nproc)" if [ ! -f ${BUILD_DIR}/simple_object_storage ]; then die "Failed to build $ARCH executable"