Index: build/mac_toolchain.py |
diff --git a/build/mac_toolchain.py b/build/mac_toolchain.py |
index bec92a9e01b364848d25d4375d4574e617fbc713..dba2af87fcd6d2813c78963a870b1f193482ce97 100755 |
--- a/build/mac_toolchain.py |
+++ b/build/mac_toolchain.py |
@@ -157,7 +157,8 @@ def AcceptLicense(): |
def _UseHermeticToolchain(): |
current_dir = os.path.dirname(os.path.realpath(__file__)) |
script_path = os.path.join(current_dir, 'mac/should_use_hermetic_xcode.py') |
- proc = subprocess.Popen([script_path], stdout=subprocess.PIPE) |
+ target_os = 'ios' if IsIOSPlatform() else 'mac' |
+ proc = subprocess.Popen([script_path, target_os], stdout=subprocess.PIPE) |
return '1' in proc.stdout.readline() |