Index: build/config/mac/mac_sdk.gni |
diff --git a/build/config/mac/mac_sdk.gni b/build/config/mac/mac_sdk.gni |
index 8767aa4108b85a10780e1795aad7e88df0a1104d..20008d47975b7cdbf5be53fd19020d469d37a3b5 100644 |
--- a/build/config/mac/mac_sdk.gni |
+++ b/build/config/mac/mac_sdk.gni |
@@ -34,5 +34,11 @@ find_sdk_lines = |
exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines") |
mac_sdk_version = find_sdk_lines[1] |
if (mac_sdk_path == "") { |
+ # TODO(brettw) http://crbug.com/335325 when everybody moves to XCode 5 we |
+ # can remove the --print_sdk_path argument to find_sdk and instead just use |
+ # the following two lines to get the path. Although it looks longer here, it |
+ # saves forking a process in find_sdk.py so will be faster. |
+ #mac_sdk_root = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX" |
+ #mac_sdk_path = mac_sdk_root + mac_sdk_version + ".sdk" |
mac_sdk_path = find_sdk_lines[0] |
} |