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

Unified Diff: build/download_nacl_toolchains.py

Issue 7761004: Adding a special toolchain that will work with chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | chrome/nacl.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/download_nacl_toolchains.py
===================================================================
--- build/download_nacl_toolchains.py (revision 98186)
+++ build/download_nacl_toolchains.py (working copy)
@@ -9,7 +9,17 @@
import sys
-def Main():
+def Main(args):
+ # Handle chromeos=1 specially (until its building its own toolchain).
+ if 'chromeos=1' in os.environ.get('GYP_DEFINES', ''):
+ args = [
+ '--nacl-newlib-only',
+ '--file-hash', 'linux_x86_newlib',
+ '8337d5ec327d857a49b500723ec9b792f4973abc',
Mark Seaborn 2011/08/26 22:26:09 So who is going to update this? How long do you i
+ '--base-url', ('https://commondatastorage.googleapis.com/'
+ 'nativeclient-archive2/special_chromeos'),
Mark Seaborn 2011/08/26 22:26:09 Who uploaded this, and how was it built?
+ '--x86-version', '6561',
+ ]
script_dir = os.path.dirname(os.path.abspath(__file__))
src_dir = os.path.dirname(script_dir)
nacl_dir = os.path.join(src_dir, 'native_client')
@@ -22,8 +32,8 @@
sys.exit(0)
sys.path.insert(0, nacl_build_dir)
import download_toolchains
- download_toolchains.Main()
+ download_toolchains.Main(args)
if __name__ == '__main__':
- Main()
+ Main(sys.argv[1:])
« no previous file with comments | « DEPS ('k') | chrome/nacl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698