1758 fallback |
1759 fallback |
1759 --with-num-cores number of cores in the build system, e.g. |
1760 --with-num-cores number of cores in the build system, e.g. |
1760 --with-num-cores=8 [probed] |
1761 --with-num-cores=8 [probed] |
1761 --with-memory-size memory (in MB) available in the build system, e.g. |
1762 --with-memory-size memory (in MB) available in the build system, e.g. |
1762 --with-memory-size=1024 [probed] |
1763 --with-memory-size=1024 [probed] |
|
1764 --with-jobs number of parallel jobs to let make run [calculated |
|
1765 based on cores and memory] |
1763 --with-sjavac-server-java |
1766 --with-sjavac-server-java |
1764 use this java binary for running the sjavac |
1767 use this java binary for running the sjavac |
1765 background server [Boot JDK java] |
1768 background server [Boot JDK java] |
1766 --with-sjavac-server-cores |
1769 --with-sjavac-server-cores |
1767 use at most this number of concurrent threads on the |
1770 use at most this number of concurrent threads on the |
3722 # definitions. It is replaced with custom functionality when building |
3727 # definitions. It is replaced with custom functionality when building |
3723 # custom sources. |
3728 # custom sources. |
3724 #CUSTOM_AUTOCONF_INCLUDE |
3729 #CUSTOM_AUTOCONF_INCLUDE |
3725 |
3730 |
3726 # Do not change or remove the following line, it is needed for consistency checks: |
3731 # Do not change or remove the following line, it is needed for consistency checks: |
3727 DATE_WHEN_GENERATED=1361452590 |
3732 DATE_WHEN_GENERATED=1362411827 |
3728 |
3733 |
3729 ############################################################################### |
3734 ############################################################################### |
3730 # |
3735 # |
3731 # Initialization / Boot-strapping |
3736 # Initialization / Boot-strapping |
3732 # |
3737 # |
31223 # not the result. |
31228 # not the result. |
31224 # |
31229 # |
31225 ############################################################################### |
31230 ############################################################################### |
31226 |
31231 |
31227 |
31232 |
31228 # How many cores do we have on this build system? |
31233 # How many cores do we have on this build system? |
31229 |
31234 |
31230 # Check whether --with-num-cores was given. |
31235 # Check whether --with-num-cores was given. |
31231 if test "${with_num_cores+set}" = set; then : |
31236 if test "${with_num_cores+set}" = set; then : |
31232 withval=$with_num_cores; |
31237 withval=$with_num_cores; |
31233 fi |
31238 fi |
31234 |
31239 |
31235 if test "x$with_num_cores" = x; then |
31240 if test "x$with_num_cores" = x; then |
31236 # The number of cores were not specified, try to probe them. |
31241 # The number of cores were not specified, try to probe them. |
31237 |
31242 |
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 |
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 |
31239 $as_echo_n "checking for number of cores... " >&6; } |
31244 $as_echo_n "checking for number of cores... " >&6; } |
31240 NUM_CORES=1 |
31245 NUM_CORES=1 |
31256 # On windows, look in the env |
31261 # On windows, look in the env |
31257 NUM_CORES=$NUMBER_OF_PROCESSORS |
31262 NUM_CORES=$NUMBER_OF_PROCESSORS |
31258 FOUND_CORES=yes |
31263 FOUND_CORES=yes |
31259 fi |
31264 fi |
31260 |
31265 |
31261 # For c/c++ code we run twice as many concurrent build |
|
31262 # jobs than we have cores, otherwise we will stall on io. |
|
31263 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2` |
|
31264 |
|
31265 if test "x$FOUND_CORES" = xyes; then |
31266 if test "x$FOUND_CORES" = xyes; then |
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 |
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 |
31267 $as_echo "$NUM_CORES" >&6; } |
31268 $as_echo "$NUM_CORES" >&6; } |
31268 else |
31269 else |
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 |
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 |
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 |
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 |
31272 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} |
31273 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} |
31273 fi |
31274 fi |
31274 |
31275 |
31275 |
31276 |
31276 else |
31277 else |
31277 NUM_CORES=$with_num_cores |
31278 NUM_CORES=$with_num_cores |
31278 CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2` |
31279 fi |
31279 fi |
31280 |
31280 |
31281 |
31281 |
31282 |
31282 |
31283 # How much memory do we have on this build system? |
31283 |
|
31284 # How much memory do we have on this build system? |
|
31285 |
31284 |
31286 # Check whether --with-memory-size was given. |
31285 # Check whether --with-memory-size was given. |
31287 if test "${with_memory_size+set}" = set; then : |
31286 if test "${with_memory_size+set}" = set; then : |
31288 withval=$with_memory_size; |
31287 withval=$with_memory_size; |
31289 fi |
31288 fi |
31290 |
31289 |
31291 if test "x$with_memory_size" = x; then |
31290 if test "x$with_memory_size" = x; then |
31292 # The memory size was not specified, try to probe it. |
31291 # The memory size was not specified, try to probe it. |
31293 |
31292 |
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 |
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 |
31295 $as_echo_n "checking for memory size... " >&6; } |
31294 $as_echo_n "checking for memory size... " >&6; } |
31296 # Default to 1024 MB |
31295 # Default to 1024 MB |
31326 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } |
31325 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } |
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 |
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 |
31328 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} |
31327 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} |
31329 fi |
31328 fi |
31330 |
31329 |
31331 else |
31330 else |
31332 MEMORY_SIZE=$with_memory_size |
31331 MEMORY_SIZE=$with_memory_size |
31333 fi |
31332 fi |
|
31333 |
|
31334 |
|
31335 |
|
31336 # Provide a decent default number of parallel jobs for make depending on |
|
31337 # number of cores, amount of memory and machine architecture. |
|
31338 |
|
31339 # Check whether --with-jobs was given. |
|
31340 if test "${with_jobs+set}" = set; then : |
|
31341 withval=$with_jobs; |
|
31342 fi |
|
31343 |
|
31344 if test "x$with_jobs" = x; then |
|
31345 # Number of jobs was not specified, calculate. |
|
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 |
|
31347 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } |
|
31348 # Approximate memory in GB, rounding up a bit. |
|
31349 memory_gb=`expr $MEMORY_SIZE / 1100` |
|
31350 # Pick the lowest of memory in gb and number of cores. |
|
31351 if test "$memory_gb" -lt "$NUM_CORES"; then |
|
31352 JOBS="$memory_gb" |
|
31353 else |
|
31354 JOBS="$NUM_CORES" |
|
31355 # On bigger machines, leave some room for other processes to run |
|
31356 if test "$JOBS" -gt "4"; then |
|
31357 JOBS=`expr $JOBS '*' 90 / 100` |
|
31358 fi |
|
31359 fi |
|
31360 # Cap number of jobs to 16 |
|
31361 if test "$JOBS" -gt "16"; then |
|
31362 JOBS=16 |
|
31363 fi |
|
31364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 |
|
31365 $as_echo "$JOBS" >&6; } |
|
31366 else |
|
31367 JOBS=$with_jobs |
|
31368 fi |
31334 |
31369 |
31335 |
31370 |
31336 |
31371 |
31337 # Setup smart javac (after cores and memory have been setup) |
31372 # Setup smart javac (after cores and memory have been setup) |
31338 |
31373 |
33141 printf "* C Compiler: $CC_VENDOR version $CC_VERSION (at $CC)\n" |
33176 printf "* C Compiler: $CC_VENDOR version $CC_VERSION (at $CC)\n" |
33142 printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n" |
33177 printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n" |
33143 |
33178 |
33144 printf "\n" |
33179 printf "\n" |
33145 printf "Build performance summary:\n" |
33180 printf "Build performance summary:\n" |
33146 printf "* Cores to use: $NUM_CORES\n" |
33181 printf "* Cores to use: $JOBS\n" |
33147 printf "* Memory limit: $MEMORY_SIZE MB\n" |
33182 printf "* Memory limit: $MEMORY_SIZE MB\n" |
33148 printf "* ccache status: $CCACHE_STATUS\n" |
33183 printf "* ccache status: $CCACHE_STATUS\n" |
33149 printf "\n" |
33184 printf "\n" |
33150 |
33185 |
33151 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then |
33186 if test "x$CCACHE_HELP_MSG" != x && test "x$HIDE_PERFORMANCE_HINTS" = "xno"; then |