mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 19:47:50 +08:00
[build] default to parallel make for aircrafts
This commit is contained in:
+4
-5
@@ -60,12 +60,12 @@ else
|
|||||||
MKTEMP = mktemp
|
MKTEMP = mktemp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# detection of number of processors for parallel compilation
|
# By default, detect number of processors for parallel compilation
|
||||||
# by passing J=AUTO from toplevel make.
|
# same as passing J=AUTO from toplevel make.
|
||||||
# Number of processes can also be explicitly set with e.g. J=4
|
# Number of processes can also be explicitly set with e.g. J=4
|
||||||
# Calling make without a J variable is the same as J=1 (serial compilation)
|
# For serial compilation, call make with J=1
|
||||||
NPROCS := 1
|
NPROCS := 1
|
||||||
ifdef J
|
J ?= AUTO
|
||||||
ifeq ($J,AUTO)
|
ifeq ($J,AUTO)
|
||||||
ifeq ($(UNAME),Linux)
|
ifeq ($(UNAME),Linux)
|
||||||
NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
|
NPROCS := $(shell grep -c ^processor /proc/cpuinfo)
|
||||||
@@ -74,7 +74,6 @@ else ifeq ($(UNAME),Darwin)
|
|||||||
endif # $(UNAME)
|
endif # $(UNAME)
|
||||||
else # not auto, explicitly specified
|
else # not auto, explicitly specified
|
||||||
NPROCS := $J
|
NPROCS := $J
|
||||||
endif # $J
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user