mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
10 lines
244 B
Bash
Executable file
10 lines
244 B
Bash
Executable file
#!/bin/sh
|
|
CPU_CORES=`grep -c ^processor /proc/cpuinfo`
|
|
USED_CPU_CORES=$(($CPU_CORES + 1))
|
|
if [ -z "$CMAKE_BIN" ]; then CMAKE_BIN='cmake'; fi
|
|
|
|
`$CMAKE_BIN ..`
|
|
|
|
echo "#### Using $USED_CPU_CORES parallel compile jobs ###"
|
|
|
|
make -j $USED_CPU_CORES
|