Index: build_overrides/build.gni |
diff --git a/build_overrides/build.gni b/build_overrides/build.gni |
index 3f5940a6741f84b3f0cc76c2604ed17e9dc18b26..81cb3e73ae2329f92de21978552a8778ab82f214 100644 |
--- a/build_overrides/build.gni |
+++ b/build_overrides/build.gni |
@@ -35,5 +35,14 @@ lint_suppressions_file = "//tools_webrtc/android/suppressions.xml" |
# so we just ignore that assert. See https://crbug.com/648948 for more info. |
ignore_elf32_limitations = true |
-# Use bundled hermetic Xcode installation maintainted by Chromium. |
-use_system_xcode = false |
+# Use bundled hermetic Xcode installation maintainted by Chromium, |
+# except for local iOS builds where it's unsupported. |
+if (host_os == "mac") { |
+ _result = exec_script("//build/mac/should_use_hermetic_xcode.py", |
+ [ target_os ], |
+ "value") |
+ assert(_result != 2, |
+ "Do not allow building targets with the default" + |
+ "hermetic toolchain if the minimum OS version is not met.") |
+ use_system_xcode = _result == 0 |
+} |