Speed up a slow build-fastcompile.sh

This commit is contained in:
Rebekah 2024-02-14 08:41:54 -05:00
parent 25d64bb859
commit e93efe431a
Signed by: oneechanhax
GPG Key ID: 183EB7902964DAE5

View File

@ -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)