Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3411)

Unified Diff: build_overrides/build.gni

Issue 2494103002: Move use_system_xcode to //build_overrides/build.gni (Closed)
Patch Set: Moved references into build.gni Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« .gn ('K') | « build/toolchain/toolchain.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_overrides/build.gni
diff --git a/build_overrides/build.gni b/build_overrides/build.gni
index 122ec63f7519397420989e597076e8c32b4f545e..c607f818b7ea5ecb5621cb5acfa440ab7c52b653 100644
--- a/build_overrides/build.gni
+++ b/build_overrides/build.gni
@@ -37,4 +37,22 @@ declare_args() {
# due to 4GiB file size limit, see https://crbug.com/648948.
# Set this flag to true to skip the assertion.
ignore_elf32_limitations = false
+
+ # Use the system install of Xcode for tools like ibtool, libtool, etc.
+ # This does not affect the compiler. When this variable is false, targets will
+ # instead use a hermetic install of Xcode. [The hermetic install can be
+ # obtained with gclient sync after setting the environment variable
+ # FORCE_MAC_TOOLCHAIN].
+ use_system_xcode = ""
+}
+
+if (use_system_xcode == "") {
+ if (target_os == "mac") {
+ _result =
+ exec_script("//build/mac/should_use_hermetic_xcode.py", [], "value")
+ use_system_xcode = _result == 0
+ }
+ if (target_os == "ios") {
+ use_system_xcode = true
+ }
}
« .gn ('K') | « build/toolchain/toolchain.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698