changeset 7559:9b4e7bf75dcf 8u11-b02

RT-35955: Mac: Intermittent build failures in task graphics:ccMacFontT2K Summary: disabled parallel native compilation on the Mac by default
author kcr
date Thu, 27 Mar 2014 14:11:37 -0700
parents 0f263a2a862c
children 0c7886b87d6a
files build.gradle
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Tue Mar 25 08:05:20 2014 -0700
+++ b/build.gradle	Thu Mar 27 14:11:37 2014 -0700
@@ -365,7 +365,12 @@
 ext.DO_JCOV = Boolean.parseBoolean(JCOV)
 
 // Define the number of threads to use when compiling (specifically for native compilation)
-defineProperty("NUM_COMPILE_THREADS", "${Runtime.runtime.availableProcessors()}")
+// On Mac we limit it to 1 by default due to problems running gcc in parallel
+if (IS_MAC) {
+    defineProperty("NUM_COMPILE_THREADS", "1")
+} else {
+    defineProperty("NUM_COMPILE_THREADS", "${Runtime.runtime.availableProcessors()}")
+}
 
 //
 // The next three sections of properties are used to generate the
@@ -690,6 +695,7 @@
 logger.quiet("jdk version: ${jdkVersion}")
 logger.quiet("jdk build number: ${jdkBuildNumber}")
 logger.quiet("minimum java build number: ${jfxBuildJdkBuildnumMin}")
+logger.quiet("NUM_COMPILE_THREADS: $NUM_COMPILE_THREADS")
 logger.quiet("COMPILE_TARGETS: $COMPILE_TARGETS")
 logger.quiet("COMPILE_FLAGS_FILES: $COMPILE_FLAGS_FILES")
 logger.quiet("HUDSON_JOB_NAME: $HUDSON_JOB_NAME")