From 1b28af01578b5ceb091cc786f449d442c72600ee Mon Sep 17 00:00:00 2001 From: Timothy Liu Date: Fri, 28 Apr 2023 16:21:28 +0800 Subject: [PATCH] build: enable parallel compilation --- dependency/shell/compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependency/shell/compile.sh b/dependency/shell/compile.sh index 4e7b6f3..382cd85 100644 --- a/dependency/shell/compile.sh +++ b/dependency/shell/compile.sh @@ -7,7 +7,7 @@ while (( $i <= 5 )) do if [ -f "${bind}/player${i}.cpp" ]; then cp -f $bind/player$i.cpp ./API/src/AI.cpp - cmake ./CMakeLists.txt && make >compile_log$i.txt 2>&1 + cmake ./CMakeLists.txt && make -j$(nproc) >compile_log$i.txt 2>&1 mv ./capi $bind/capi$i # executable file if [ $? -ne 0 ]; then flag=0