diff --git a/appveyor.yml b/appveyor.yml index 69737684..efe089af 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -63,7 +63,7 @@ build_script: } } if ($ncpus -ne '') { - $parallel = '-j' + $ncpus + $parallel = '-j' + $ncpus + ' NJOBS=' + $ncpus Write-Host "Building with $ncpus processors" } $commit_id_file = '.git-commit-id' diff --git a/makefile b/makefile index 8e0c538a..30106bbe 100644 --- a/makefile +++ b/makefile @@ -172,7 +172,9 @@ else export MKDIR = mkdir -p export OSTYPE = $(shell uname) endif -NJOBS:=$(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS))) +ifeq (,$(NJOBS)) + NJOBS:=$(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS))) +endif ifneq (,$(NJOBS)) JOBS:=-j$(NJOBS) endif @@ -275,6 +277,8 @@ ifneq (,$(and $(word 1,${MAKECMDGOALS}),$(word 2,${MAKECMDGOALS}))) BUILD_MULTIPLE_VERB = are MAKECMDGOALS_DESCRIPTION = the $(MAKECMDGOALS) simulators endif +SHOWTARGET=$(BUILD_MULTIPLE) +export SHOWTARGET # someone may want to explicitly build simulators without network support ifneq ($(NONETWORK),) NETWORK_USEFUL = @@ -3216,7 +3220,7 @@ else # end of primary make recipies pathfix = $(1) endif - find_test = $(if $(findstring 0,$(TESTS)),, RegisterSanityCheck $(if $(abspath $(wildcard $(PRIMARY_SRC)/tests/$(1)_test.ini)),$(abspath $(wildcard $(PRIMARY_SRC)/tests/$(1)_test.ini)),$(abspath $(wildcard $(PRIMARY_INC)/tests/$(1)_test.ini)))