Index: build/download_nacl_toolchains.py |
diff --git a/build/download_nacl_toolchains.py b/build/download_nacl_toolchains.py |
index 3a4cb1b8bfaf08239f7ff348effb28d648e63627..83f663833e1d02dd1955eab63d8cfe58d873e9cc 100755 |
--- a/build/download_nacl_toolchains.py |
+++ b/build/download_nacl_toolchains.py |
@@ -17,14 +17,15 @@ def Main(args): |
src_dir = os.path.dirname(script_dir) |
nacl_dir = os.path.join(src_dir, 'native_client') |
nacl_build_dir = os.path.join(nacl_dir, 'build') |
- download_script = os.path.join(nacl_build_dir, 'download_toolchains.py') |
- if not os.path.exists(download_script): |
- print "Can't find '%s'" % download_script |
+ package_version_dir = os.path.join(nacl_build_dir, 'package_version') |
+ package_version = os.path.join(package_version_dir, 'package_version.py') |
+ if not os.path.exists(package_version): |
+ print "Can't find '%s'" % package_version |
print 'Presumably you are intentionally building without NativeClient.' |
print 'Skipping NativeClient toolchain download.' |
sys.exit(0) |
- sys.path.insert(0, nacl_build_dir) |
- import download_toolchains |
+ sys.path.insert(0, package_version_dir) |
+ import package_version |
# TODO (robertm): Finish getting PNaCl ready for prime time. |
noelallen1
2014/04/14 19:42:21
Can this TODO go away now?
David Yen
2014/04/14 20:20:56
Done.
jvoung (off chromium)
2014/04/21 18:08:53
Does anything actually use --optional-pnacl anymor
|
# BUG: |
@@ -41,21 +42,17 @@ def Main(args): |
if use_pnacl: |
print '\n*** DOWNLOADING PNACL TOOLCHAIN ***\n' |
else: |
- args.append('--no-pnacl') |
+ args.extend(['--exclude', 'pnacl_newlib']) |
# Only download the ARM gcc toolchain if we are building for ARM |
# TODO(olonho): we need to invent more reliable way to get build |
# configuration info, to know if we're building for ARM. |
- if 'target_arch=arm' in os.environ.get('GYP_DEFINES', ''): |
- args.append('--arm-untrusted') |
+ if 'target_arch=arm' not in os.environ.get('GYP_DEFINES', ''): |
+ args.extend(['--exclude', 'nacl_arm_newlib']) |
- # Append the name of the file to use as a version and hash source. |
- # NOTE: While not recommended, it is possible to redirect this file to |
- # a chrome location to avoid branching NaCl if just a toolchain needs |
- # to be bumped. |
- args.append(os.path.join(nacl_dir, 'TOOL_REVISIONS')) |
+ args.append('sync') |
- download_toolchains.main(args) |
+ package_version.main(args) |
return 0 |