Skip to content

Commit d2fcce9

Browse files
Fix NUM_JOBS for macos
1 parent 8ccca56 commit d2fcce9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
ifeq ($(shell uname),Darwin)
2+
NUM_JOBS=$(shell sysctl -n hw.ncpu)
3+
else
14
NUM_JOBS=$(shell nproc)
5+
endif
26
CXX=clang++
37

48
.PHONY: default examples/hello_world/build/hello_world tests libgpu debug build check-clang clean-build clean all watch-tests docs

0 commit comments

Comments
 (0)