Revert of SDK building script now uses package_version to extract. (https://codereview.chromium.org/235603004/)
Reason for revert: This update breaks PPAPI*NonSfi tests on linux-32bits bot. See also crbug.com/365817 Original issue's description: > NaCl: Update revision in DEPS, r13018 -> r13062. > > Chromium NaCl scripts now uses package_version to extract. > > Now that we have split up the toolchain into multiple tars, we should > use the package versioning script to manage which tars to extract. > Unfortunately, currently the SDK uses different directory names compared > to what the NaCl toolchain directories normally use, so we also must map > and move the toolchain directories to the SDK ones. > > TEST= trybots > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265303 TBR=noelallen@chromium.org,bradnelson@chromium.org,jvoung@chromium.org,mseaborn@chromium.org,dyen@chromium.org NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/247143007 git-svn-id: http://src.chromium.org/svn/trunk/src/build@265559 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
2a6a690b4a
Коммит
ae4d0e5171
|
@ -17,16 +17,16 @@ 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')
|
||||
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
|
||||
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
|
||||
print 'Presumably you are intentionally building without NativeClient.'
|
||||
print 'Skipping NativeClient toolchain download.'
|
||||
sys.exit(0)
|
||||
sys.path.insert(0, package_version_dir)
|
||||
import package_version
|
||||
sys.path.insert(0, nacl_build_dir)
|
||||
import download_toolchains
|
||||
|
||||
# TODO (robertm): Finish getting PNaCl ready for prime time.
|
||||
# BUG:
|
||||
# We remove this --optional-pnacl argument, and instead replace it with
|
||||
# --no-pnacl for most cases. However, if the bot name is an sdk
|
||||
|
@ -41,17 +41,21 @@ def Main(args):
|
|||
if use_pnacl:
|
||||
print '\n*** DOWNLOADING PNACL TOOLCHAIN ***\n'
|
||||
else:
|
||||
args.extend(['--exclude', 'pnacl_newlib'])
|
||||
args.append('--no-pnacl')
|
||||
|
||||
# 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' not in os.environ.get('GYP_DEFINES', ''):
|
||||
args.extend(['--exclude', 'nacl_arm_newlib'])
|
||||
if 'target_arch=arm' in os.environ.get('GYP_DEFINES', ''):
|
||||
args.append('--arm-untrusted')
|
||||
|
||||
args.append('sync')
|
||||
args.append('--extract')
|
||||
package_version.main(args)
|
||||
# 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'))
|
||||
|
||||
download_toolchains.main(args)
|
||||
return 0
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче