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

Side by Side Diff: build/mac/should_use_hermetic_xcode.py

Issue 2546613004: Enable hermetic builds for iOS. (Closed)
Patch Set: Enable iOS hermetic, but not for corp Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | build_overrides/build.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Prints "1" if Chrome targets should be built with hermetic xcode. Otherwise 6 """Prints "1" if Chrome targets should be built with hermetic xcode. Otherwise
7 prints "0".""" 7 prints "0"."""
8 8
9 import os 9 import os
10 import sys 10 import sys
11 11
12 12
13 def _IsCorpMachine(): 13 def _IsCorpMachine():
14 return os.path.isdir('/Library/GoogleCorpSupport/') 14 return os.path.isdir('/Library/GoogleCorpSupport/')
15 15
16 16
17 def main(): 17 def main():
18 if os.environ.get('FORCE_MAC_TOOLCHAIN') or _IsCorpMachine(): 18 allow_corp = sys.argv[1] == "mac" and _IsCorpMachine()
erikchen 2016/12/06 20:07:55 Update documentation for this script?
justincohen 2016/12/06 20:51:34 Done.
19 if os.environ.get('FORCE_MAC_TOOLCHAIN') or allow_corp:
19 return "1" 20 return "1"
20 else: 21 else:
21 return "0" 22 return "0"
22 23
23 24
24 if __name__ == '__main__': 25 if __name__ == '__main__':
25 print main() 26 print main()
26 sys.exit(0) 27 sys.exit(0)
OLDNEW
« no previous file with comments | « no previous file | build_overrides/build.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698