Speed up a slow build-fastcompile.sh
This commit is contained in:
parent
25d64bb859
commit
e93efe431a
@ -6,7 +6,8 @@ if [ -f CMakeLists.txt ]; then
|
||||
fi
|
||||
|
||||
if ! [ -f CMakeCache.txt ]; then
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DUNITY_BUILDS=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF ..
|
||||
# Unity builds do speed things up as less small files requiring a full compiler startup and cleanup for each.
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DUNITY_BUILDS=ON -DWHOLE_PROGRAM_OPTIMISATION=OFF ..
|
||||
fi
|
||||
|
||||
make -j$(nproc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user