Fetch "alt" rust std build when we do so for rustc

This commit is contained in:
Simon Sapin 2017-06-30 15:34:46 +02:00
parent 7b82d3b97b
commit 6b523302e1

View file

@ -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)