make/RunTestsPrebuilt.gmk
branchihse-runtestprebuilt-branch
changeset 56923 3603b2f71035
parent 56895 3289d2b19b94
child 56961 007ce32735e3
equal deleted inserted replaced
56917:e3334aaef781 56923:3603b2f71035
   220   PATH_SEP:=:
   220   PATH_SEP:=:
   221 endif
   221 endif
   222 
   222 
   223 # Check number of cores
   223 # Check number of cores
   224 ifeq ($(OPENJDK_TARGET_OS), linux)
   224 ifeq ($(OPENJDK_TARGET_OS), linux)
   225     NUM_CORES := $(shell $(CAT) /proc/cpuinfo  | $(GREP) -c processor)
   225   NUM_CORES := $(shell $(CAT) /proc/cpuinfo  | $(GREP) -c processor)
   226 else ifeq ($(OPENJDK_TARGET_OS), macosx)
   226 else ifeq ($(OPENJDK_TARGET_OS), macosx)
   227     NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
   227   NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
   228 else ifeq ($(OPENJDK_TARGET_OS), solaris)
   228 else ifeq ($(OPENJDK_TARGET_OS), solaris)
   229     NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line)
   229   NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line)
   230 else ifeq ($(OPENJDK_TARGET_OS), windows)
   230 else ifeq ($(OPENJDK_TARGET_OS), windows)
   231     NUM_CORES := $(NUMBER_OF_PROCESSORS)
   231   NUM_CORES := $(NUMBER_OF_PROCESSORS)
   232 else
   232 endif
   233     NUM_CORES := 1
   233 ifeq ($(NUM_CORES), )
       
   234   $(warn Could not find number of CPUs, assuming 1)
       
   235   NUM_CORES := 1
   234 endif
   236 endif
   235 
   237 
   236 ################################################################################
   238 ################################################################################
   237 # Generate the ephemeral spec file
   239 # Generate the ephemeral spec file
   238 ################################################################################
   240 ################################################################################