guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.72k stars 219 forks source link

Fix parallel build on all platforms #342

Closed Alexander-Wilms closed 5 months ago

Alexander-Wilms commented 5 months ago

https://stackoverflow.com/a/7045431/2278742 https://stackoverflow.com/questions/2527496/how-can-i-write-a-makefile-to-auto-detect-and-parallelize-the-build-with-gnu-mak#comment51509939_7045431

Now the CI log shows the following:

windows_x86_64

Run make release
scons "-j 4" mode=release

linux_x86_64

Run make release
scons "-j 4" mode=release

osx_x86_64

Run make release
scons "-j 3" mode=release

The Stackoverflow answer linked above also recommends

# Only take half as many processors as available
NUMPROC := $(shell echo "$(NUMPROC)/2"|bc)

but since the build only takes a minute, I think that's not necessary.