forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn on hermetic toolchain for all corp machines.
BUG=659726 Committed: https://crrev.com/7778e931dabc1fa85d0b77321e3fdef166e0b6a0 Review-Url: https://codereview.chromium.org/2445993004 Cr-Original-Commit-Position: refs/heads/master@{#430376} Cr-Commit-Position: refs/heads/master@{#430863}
- Loading branch information
Showing
4 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python | ||
# Copyright 2016 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
"""Prints "1" if Chrome targets should be built with hermetic xcode. Otherwise | ||
prints "0".""" | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def _IsCorpMachine(): | ||
return os.path.isdir('/Library/GoogleCorpSupport/') | ||
|
||
|
||
def main(): | ||
if os.environ.get('FORCE_MAC_TOOLCHAIN') or _IsCorpMachine(): | ||
return "1" | ||
else: | ||
return "0" | ||
|
||
|
||
if __name__ == '__main__': | ||
print main() | ||
sys.exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters