]> git.lizzy.rs Git - rust.git/commit
ci: Compile LLVM with Clang 6.0.0
authorAlex Crichton <alex@alexcrichton.com>
Tue, 24 Apr 2018 15:34:14 +0000 (08:34 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 9 May 2018 21:45:34 +0000 (14:45 -0700)
commit7e5b9ac41e36b29d5208f4e5455aade07d4d107d
tree089e6f1ef7eac8c624658ed2328d2cfbdc6cb41b
parentac287ed167f07619409928008e4a50eecac4a285
ci: Compile LLVM with Clang 6.0.0

Currently on CI we predominately compile LLVM with the default system compiler
which means gcc on Linux, some version of Clang on OSX, MSVC on Windows, and
gcc on MinGW. This commit switches Linux, OSX, and Windows to all use Clang
6.0.0 to build LLVM (aka the C/C++ compiler as part of the bootstrap). This
looks to generate faster code according to #49879 which translates to a faster
rustc (as LLVM internally is faster)

The major changes here were to the containers that build Linux releases,
basically adding a new step that uses the previous gcc 4.8 compiler to compile
the next Clang 6.0.0 compiler. Otherwise the OSX and Windows scripts have been
updated to download precompiled versions of Clang 6 and configure the build to
use them.

Note that `cc` was updated here to fix using `clang-cl` with `cc-rs` on MSVC, as
well as an update to `sccache` on Windows which was needed to correctly work
with `clang-cl`. Finally the MinGW compiler is entirely left out here
intentionally as it's currently thought that Clang can't generate C++ code for
MinGW and we need to use gcc, but this should be verified eventually.
24 files changed:
.travis.yml
appveyor.yml
config.toml.example
src/Cargo.lock
src/bootstrap/Cargo.toml
src/bootstrap/bin/llvm-config-wrapper.rs [new file with mode: 0644]
src/bootstrap/bin/sccache-plus-cl.rs
src/bootstrap/builder.rs
src/bootstrap/config.rs
src/bootstrap/native.rs
src/ci/docker/dist-i686-linux/Dockerfile
src/ci/docker/dist-i686-linux/build-binutils.sh [deleted file]
src/ci/docker/dist-i686-linux/build-cmake.sh [deleted file]
src/ci/docker/dist-i686-linux/build-curl.sh [deleted file]
src/ci/docker/dist-i686-linux/build-gcc.sh [deleted file]
src/ci/docker/dist-i686-linux/build-git.sh [deleted file]
src/ci/docker/dist-i686-linux/build-headers.sh [deleted file]
src/ci/docker/dist-i686-linux/build-openssl.sh [deleted file]
src/ci/docker/dist-i686-linux/build-python.sh [deleted file]
src/ci/docker/dist-i686-linux/shared.sh [deleted file]
src/ci/docker/dist-x86_64-linux/Dockerfile
src/ci/docker/dist-x86_64-linux/build-clang.sh [new file with mode: 0755]
src/ci/docker/dist-x86_64-linux/build-gcc.sh
src/llvm