diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-06-30 15:34:46 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-06-30 15:44:03 +0200 |
commit | 6b523302e1159a4b89223d2e47f053e67240cf35 (patch) | |
tree | 5f2e2be4dec170edd86267a913e8f61e38e45490 /python/servo/bootstrap_commands.py | |
parent | 7b82d3b97b43cc219a6314986c182b806a85d0f8 (diff) | |
download | servo-6b523302e1159a4b89223d2e47f053e67240cf35.tar.gz servo-6b523302e1159a4b89223d2e47f053e67240cf35.zip |
Fetch "alt" rust std build when we do so for rustc
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index ceab1907f46..7f0be395d73 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -135,8 +135,11 @@ class MachCommands(CommandBase): % (version, target_triple)) tgz_file = install_dir + ('rust-std-%s-%s.tar.gz' % (version, target_triple)) else: - std_url = ("https://s3.amazonaws.com/rust-lang-ci/rustc-builds/%s/rust-std-nightly-%s.tar.gz" - % (version, target_triple)) + tarball = "%s/rust-std-nightly-%s.tar.gz" % (version, target_triple) + base_url = "https://s3.amazonaws.com/rust-lang-ci/rustc-builds" + if not self.config["build"]["llvm-assertions"]: + base_url += "-alt" + std_url = base_url + "/" + tarball tgz_file = install_dir + ('rust-std-nightly-%s.tar.gz' % target_triple) download_file("Host rust library for target %s" % target_triple, std_url, tgz_file) |