1
0
forked from Alepha/Alepha

Autodeduce CPU count.

This commit is contained in:
2023-11-19 01:37:17 -05:00
parent af6c39b153
commit c83549101b

View File

@ -1,10 +1,14 @@
# You can use this makefile in your # You can use this makefile in your
# build directory to drive ninja builds. # build directory to drive ninja builds.
processor_count=$(shell grep -c "^processor" /proc/cpuinfo)
#count=$(shell expr ${processor_count} - 1)
count=$(shell expr $(processor_count) - 1 )
__primary: test __primary: test
all: all:
ninja -v -j19 all ninja -v -j${count} all
clean: clean:
ninja clean ninja clean