[Xcode] Use the same environment for command-line and IDE builds
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 28 Jun 2015 23:30:20 +0000 (23:30 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 28 Jun 2015 23:30:20 +0000 (23:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=146401

Reviewed by Anders Carlsson.

* Scripts/webkitdirs.pm:
(XcodeOptions): Set the UseSanitizedBuildSystemEnvironment user default to YES, which makes
xcodebuild use the same environment Xcode uses.

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

Tools/ChangeLog
Tools/Scripts/webkitdirs.pm

index 3d20e0e..ac175d2 100644 (file)
@@ -1,5 +1,16 @@
 2015-06-28  Dan Bernstein  <mitz@apple.com>
 
+        [Xcode] Use the same environment for command-line and IDE builds
+        https://bugs.webkit.org/show_bug.cgi?id=146401
+
+        Reviewed by Anders Carlsson.
+
+        * Scripts/webkitdirs.pm:
+        (XcodeOptions): Set the UseSanitizedBuildSystemEnvironment user default to YES, which makes
+        xcodebuild use the same environment Xcode uses.
+
+2015-06-28  Dan Bernstein  <mitz@apple.com>
+
         REGRESSION (r185915): Source-incompatible change in WKPageUIClient
         https://bugs.webkit.org/show_bug.cgi?id=146396
 
index e1269e4..c46de90 100755 (executable)
@@ -674,7 +674,7 @@ sub XcodeOptions
     my @architectureOption = ($architecture ? "ARCHS=$architecture" : ());
     my @asanOption = ($asanIsEnabled ? ("-xcconfig", sourceDir() . "/Tools/asan/asan.xcconfig", "ASAN_IGNORE=" . sourceDir() . "/Tools/asan/webkit-asan-ignore.txt") : ());
 
-    return (@baseProductDirOption, "-configuration", $configuration, @architectureOption, @sdkOption, @asanOption, argumentsForXcode());
+    return ("-UseSanitizedBuildSystemEnvironment=YES", @baseProductDirOption, "-configuration", $configuration, @architectureOption, @sdkOption, @asanOption, argumentsForXcode());
 }
 
 sub XcodeOptionString