Browse Source

build: enable parallel compilation

tags/0.1.0
Timothy Liu GitHub 2 years ago
parent
commit
1b28af0157
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dependency/shell/compile.sh

+ 1
- 1
dependency/shell/compile.sh View File

@@ -7,7 +7,7 @@ while (( $i <= 5 ))
do do
if [ -f "${bind}/player${i}.cpp" ]; then if [ -f "${bind}/player${i}.cpp" ]; then
cp -f $bind/player$i.cpp ./API/src/AI.cpp 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 mv ./capi $bind/capi$i # executable file
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
flag=0 flag=0


Loading…
Cancel
Save