-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #47522 - kennytm:rollup, r=kennytm
Rollup of 21 pull requests - Successful merges: #47302, #47333, #47387, #47404, #47407, #47426, #47427, #47436, #47444, #47456, #47458, #47467, #47479, #47481, #47483, #47487, #47497, #47498, #47505, #47509, #47514 - Failed merges:
- Loading branch information
Showing
85 changed files
with
611 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
# Copyright 2018 The Rust Project Developers. See the COPYRIGHT | ||
# file at the top-level directory of this distribution and at | ||
# http://rust-lang.org/COPYRIGHT. | ||
# | ||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
# option. This file may not be copied, modified, or distributed | ||
# except according to those terms. | ||
|
||
set -eux | ||
|
||
# Install prerequisites. | ||
apt-get update | ||
apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
clang-5.0 \ | ||
cmake \ | ||
curl \ | ||
file \ | ||
g++ \ | ||
gdb \ | ||
git \ | ||
lld-5.0 \ | ||
make \ | ||
python \ | ||
sudo \ | ||
xz-utils | ||
|
||
# Set up a Clang-based cross compiler toolchain. | ||
# Based on the steps described at https://nuxi.nl/cloudabi/debian/ | ||
target=$1 | ||
for tool in ar nm objdump ranlib size; do | ||
ln -s ../lib/llvm-5.0/bin/llvm-${tool} /usr/bin/${target}-${tool} | ||
done | ||
ln -s ../lib/llvm-5.0/bin/clang /usr/bin/${target}-cc | ||
ln -s ../lib/llvm-5.0/bin/clang /usr/bin/${target}-c++ | ||
ln -s ../lib/llvm-5.0/bin/lld /usr/bin/${target}-ld | ||
ln -s ../../${target} /usr/lib/llvm-5.0/${target} | ||
|
||
# FIXME(EdSchouten): Remove this once cc ≥1.0.4 has been merged. It | ||
# can make use of ${target}-cc and ${target}-c++, without incorrectly | ||
# assuming it's MSVC. | ||
ln -s ../lib/llvm-5.0/bin/clang /usr/bin/${target}-clang | ||
ln -s ../lib/llvm-5.0/bin/clang /usr/bin/${target}-clang++ | ||
|
||
# Install the C++ runtime libraries from CloudABI Ports. | ||
echo deb https://nuxi.nl/distfiles/cloudabi-ports/debian/ cloudabi cloudabi > \ | ||
/etc/apt/sources.list.d/cloudabi.list | ||
curl 'https://pgp.mit.edu/pks/lookup?op=get&search=0x0DA51B8531344B15' | \ | ||
apt-key add - | ||
apt-get update | ||
apt-get install -y $(echo ${target} | sed -e s/_/-/g)-cxx-runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.