Index: ios/build/tools/setup-gn.py |
diff --git a/ios/build/tools/setup-gn.py b/ios/build/tools/setup-gn.py |
index 1453fa546bc4aa72e862bdd9d5ad3ebaa4865ba9..b4a53006354bb71140fe89383d5170def9f6de44 100755 |
--- a/ios/build/tools/setup-gn.py |
+++ b/ios/build/tools/setup-gn.py |
@@ -96,6 +96,8 @@ class GnGenerator(object): |
args.append(('is_official_build', self._config == 'Official')) |
args.append(('is_chrome_branded', 'is_official_build')) |
args.append(('use_xcode_clang', 'is_official_build')) |
+ if os.environ['FORCE_MAC_TOOLCHAIN']: |
+ args.append(('use_system_xcode', False)) |
cpu_values = self.TARGET_CPU_VALUES[self._target] |
build_arch = self._settings.getstring('build', 'arch') |