From 11e62d47d42dcdcbb26ee5f8cd430d3c2cde0a70 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sat, 8 Nov 2025 22:36:25 -0500 Subject: [PATCH] fix: correct script directory handling in build_and_test.sh for C++ client build --- build_and_test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build_and_test.sh b/build_and_test.sh index 2884813..e683b0b 100755 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -15,10 +15,11 @@ echo # 2. Build the C++ client echo "[2/3] Building C++ client..." -cd "$(dirname "$0")" +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" mkdir -p build cd build -cmake .. -DCMAKE_BUILD_TYPE=Release +cmake "$SCRIPT_DIR" -DCMAKE_BUILD_TYPE=Release make -j$(nproc) echo "✓ C++ client built successfully" echo