diff --git a/build.sh b/build.sh index f2dba50..5cf4fb5 100755 --- a/build.sh +++ b/build.sh @@ -77,13 +77,17 @@ printf "\t=========== Building wire-system-contracts ===========\n\n" RED='\033[0;31m' NC='\033[0m' CPU_CORES=$(nproc) +rm -rf build/release mkdir -p build/release cmake -S . -B build/release \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTS=${BUILD_TESTS} \ ${SYSIO_DIR_CMAKE_OPTION} \ - ${CDT_DIR_CMAKE_OPTION} + ${CDT_DIR_CMAKE_OPTION} \ + -DCMAKE_C_COMPILER=/usr/bin/clang-18 \ + -DCMAKE_CXX_COMPILER=/usr/bin/clang++-18 + CMAKE_BUILD_PARALLEL_LEVEL=${CPU_CORES} cmake --build build/release