Set DSYMUTIL_NUM_THREADS to the number of logical cores
authordfarler@apple.com <dfarler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Aug 2014 20:38:15 +0000 (20:38 +0000)
committerdfarler@apple.com <dfarler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Aug 2014 20:38:15 +0000 (20:38 +0000)
https://bugs.webkit.org/show_bug.cgi?id=135655

Reviewed by Mark Rowe.

.:

* Makefile.shared: Export DSYMUTIL_NUM_THREADS.

Tools:

* Scripts/webkitdirs.pm:
(buildXCodeProject): Set before calling xcodebuild.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172174 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Makefile.shared
Tools/ChangeLog
Tools/Scripts/webkitdirs.pm

index ffeb1e5..fde0086 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2014-08-06  David Farler  <dfarler@apple.com>
+
+        Set DSYMUTIL_NUM_THREADS to the number of logical cores
+        https://bugs.webkit.org/show_bug.cgi?id=135655
+
+        Reviewed by Mark Rowe.
+
+        * Makefile.shared: Export DSYMUTIL_NUM_THREADS.
+
 2014-08-06  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Be able to disable gtk2 dependency
index ef5c0a5..da7d067 100644 (file)
@@ -25,6 +25,8 @@ OUTPUT_FILTER = $(SCRIPTS_PATH)/filter-build-webkit
 endif
 endif
 
+export DSYMUTIL_NUM_THREADS = $(shell sysctl -n hw.activecpu);
+
 all:
        ( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
 
index 3b7a79f..b130356 100644 (file)
@@ -1,3 +1,13 @@
+2014-08-06  David Farler  <dfarler@apple.com>
+
+        Set DSYMUTIL_NUM_THREADS to the number of logical cores
+        https://bugs.webkit.org/show_bug.cgi?id=135655
+
+        Reviewed by Mark Rowe.
+
+        * Scripts/webkitdirs.pm:
+        (buildXCodeProject): Set before calling xcodebuild.
+
 2014-08-06  Adrian Perez de Castro  <aperez@igalia.com>
 
         [GTK] Add support for user scripts to WebKitUserContentManager
index db4643f..9813d9a 100755 (executable)
@@ -1745,6 +1745,7 @@ sub buildXCodeProject($$@)
     push(@extraOptions, ("-sdk", "iphonesimulator")) if willUseIOSSimulatorSDKWhenBuilding();
     push(@extraOptions, ("-sdk", "iphoneos.internal")) if willUseIOSDeviceSDKWhenBuilding();
 
+    chomp($ENV{DSYMUTIL_NUM_THREADS} = `sysctl -n hw.activecpu`);
     return system "xcodebuild", "-project", "$project.xcodeproj", @extraOptions;
 }
 
@@ -1764,7 +1765,7 @@ sub buildVisualStudioProject
     dieIfWindowsPlatformSDKNotInstalled() if $willUseVCExpressWhenBuilding;
 
     chomp($project = `cygpath -w "$project"`) if isCygwin();
-    
+
     my $action = "/build";
     if ($clean) {
         $action = "/clean";