summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2017-08-23Bump to beta .3Alex Crichton-1/+1
2017-08-13Bump beta to .2Alex Crichton-1/+1
2017-07-18Remove all packaging support for the RLSAlex Crichton-55/+1
2017-07-17Auto merge of #42146 - nrc:rls-rust, r=alexcrichtonbors-11/+34
More Rust/RLS integration r? @alexcrichton cc https://github.com/rust-lang-nursery/rls/issues/310 closes #41199 closes #41197
2017-07-17Run RLS testsNick Cameron-11/+34
2017-07-16Compile `compiler_builtins` with `abort` panic strategyVadim Petrochenkov-1/+6
2017-07-14Rollup merge of #43145 - GuillaumeGomez:build-error-if-nothing, ↵Corey Farwell-1/+10
r=Mark-Simulacrum fail in case nothing to run was found Fixes #43121. r? @Mark-Simulacrum
2017-07-11fail in case nothing to run was foundGuillaume Gomez-1/+10
2017-07-10Test src/doc once moreMark Simulacrum-6/+11
2017-07-07Fix stage 2 builds with a custom libdir.Matthew Dawson-4/+11
When copying libstd for the stage 2 compiler, the builder ignores the configured libdir/libdir_relative configuration parameters. This causes the compiler to fail to find libstd, which cause any tools built with the stage 2 compiler to fail. To fix this, make the copy steps of rustbuild aware of the libdir_relative parameter when the stage >= 2. Also update the dist target to be aware of the new location of libstd.
2017-07-06Auto merge of #42899 - alexcrichton:compiler-builtins, r=nikomatsakisbors-6/+17
Switch to rust-lang-nursery/compiler-builtins This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-05rustbuild: Only -Zsave-analysis for libstdAlex Crichton-1/+3
Don't pass the flag when we're compiling the compiler or other related tools
2017-07-05Switch to rust-lang-nursery/compiler-builtinsAlex Crichton-6/+17
This commit migrates the in-tree `libcompiler_builtins` to the upstream version at https://github.com/rust-lang-nursery/compiler-builtins. The upstream version has a number of intrinsics written in Rust and serves as an in-progress rewrite of compiler-rt into Rust. Additionally it also contains all the existing intrinsics defined in `libcompiler_builtins` for 128-bit integers. It's been the intention since the beginning to make this transition but previously it just lacked the manpower to get done. As this PR likely shows it wasn't a trivial integration! Some highlight changes are: * The PR rust-lang-nursery/compiler-builtins#166 contains a number of fixes across platforms and also some refactorings to make the intrinsics easier to read. The additional testing added there also fixed a number of integration issues when pulling the repository into this tree. * LTO with the compiler-builtins crate was fixed to link in the entire crate after the LTO process as these intrinsics are excluded from LTO. * Treatment of hidden symbols was updated as previously the `#![compiler_builtins]` crate would mark all symbol *imports* as hidden whereas it was only intended to mark *exports* as hidden.
2017-07-04Use build.build instead of build.config.buildMark Simulacrum-92/+98
2017-07-04Move targets, hosts, and build triple into Build.Mark Simulacrum-27/+44
2017-07-04Store verbosity on BuildMark Simulacrum-15/+14
Prevents accidental mistakes in not using the right verbosity by going to only config or flags.
2017-07-04Store positive instead of negative fail_fast.Mark Simulacrum-10/+11
This makes later negation much easier to interpret.
2017-07-04Remove src_is_git, instead call method on rust_info directly.Mark Simulacrum-4/+6
2017-07-04Clarify meaning of Build.cargo, Build.rustc.Mark Simulacrum-41/+50
Rename Build.{cargo, rustc} to {initial_cargo, initial_rustc}.
2017-07-04Update a few comments.Mark Simulacrum-18/+11
2017-07-04Clippy lintsMark Simulacrum-43/+37
2017-07-04Cleanup distMark Simulacrum-21/+11
2017-07-04Cleanup utilsMark Simulacrum-12/+3
2017-07-04Cleanup compile.rs.Mark Simulacrum-4/+6
2017-07-04Cleanups to check code.Mark Simulacrum-23/+18
2017-07-04Remove 'static lifetimes from channels.Mark Simulacrum-2/+2
2017-07-04Clean up and restructure sanity checking.Mark Simulacrum-77/+69
2017-07-04Don't allocate args in order to run find.Mark Simulacrum-10/+9
2017-07-02Auto merge of #43003 - milmazz:bootstrap-pep8, r=alexcrichtonbors-19/+34
bootstrap: Fix all the pep-8 issues reported by flake8 This commit also adds a few missing docstrings. Today, after reading this [article](https://blog.rust-lang.org/2017/06/27/Increasing-Rusts-Reach.html), I downloaded this project and started building from source. In the meantime, I began to read the `bootstrap.py`, to know more about the building process, and I made a few changes, this is my first contribution to the project, hope you like it. BTW, I have a few doubts about the `bootstrap.py`, any guidance is more than welcome: * Where can I find the unit tests for this script? In case it doesn't exist yet, do you like to include some unit tests with pytest? * Some methods like `fix_executable`, `get_string`, and `exe_suffix` in the `RustBuild` class should be converted to a function because it doesn't use `self` anywhere. What do you think?
2017-07-01Simplify print argumentsMilton Mazzarri-1/+1
2017-07-01Auto merge of #42977 - Keruspe:master, r=alexcrichtonbors-1/+1
rustbuild: set __CARGO_DEFAULT_LIB_METADATA to channel Also, update the cargo submodule to handle the new value.
2017-06-30bootstrap: Fix some PEP8 issuesMilton Mazzarri-19/+34
This commit also adds a few missing docstrings
2017-06-30rustc_llvm: re-run build script when env var LLVM_CONFIG changesVenkata Giri Reddy-4/+0
2017-06-30rustbuild: set __CARGO_DEFAULT_LIB_METADATA to channelMarc-Antoine Perennou-1/+1
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-06-24Auto merge of #42784 - tlively:wasm-bot, r=alexcrichtonbors-0/+3
Make wasm32 buildbot test LLVM backend This adds the experimental targets option to configure so it can be used by the builders and changes the wasm32 Dockerfile accordingly. Instead of using LLVM from the emsdk, the builder's emscripten tools now uses the Rust in-tree LLVM, since this is the one built with wasm support.
2017-06-22Make wasm32 buildbot test LLVM backendThomas Lively-0/+3
This adds the experimental targets option to configure so it can be used by the builders and changes the wasm32 Dockerfile accordingly. Instead of using LLVM from the emsdk, the builder's emscripten tools now uses the Rust in-tree LLVM, since this is the one built with wasm support.
2017-06-22Make Build.cxx() return a Result instead of panickingIan Douglas Scott-11/+14
2017-06-22Set CXX_<target> in bootstrapIan Douglas Scott-0/+1
2017-06-22Rollup merge of #42806 - ollie27:rustbuild_compiler_docs, r=alexcrichtonMark Simulacrum-5/+5
rustbuild: Fix compiler docs yet again Add support for `-Z force-unstable-if-unmarked` to rustdoc. r? @alexcrichton
2017-06-22Rollup merge of #42805 - stepancheg:forward-python, r=alexcrichtonMark Simulacrum-0/+8
Pass path to python from bootstrap.py to bootstrap.rs When bootstrap is executed with python not in `$PATH`, (e. g. `c:\Python27\python.exe x.py test`) bootstrap cannot find python and crashes. This commit passes path to python in `BOOTSTRAP_PYTHON` env var.
2017-06-22Rollup merge of #42804 - Mark-Simulacrum:rustbuild-colors, r=alexcrichtonMark Simulacrum-0/+41
Make rustc errors colorful. Rustbuild passes --message-format=json to Cargo to learn about the dependencies for a given build, which then makes Cargo steal the stderr/stdout for the compiler process, leading to non colorful output. To avoid this, detection of stderr being a tty is added to rustbuild, and an environment variable is used to communicate with the rustc shim. Fixes https://github.com/rust-lang/rust/issues/42801. r? @alexcrichton
2017-06-22Auto merge of #42785 - Mark-Simulacrum:fix-verbose-bootstrap, r=alexcrichtonbors-9/+9
Fixes bootstrapping with custom cargo/rustc. config.mk is now always read when parsing the configuration to prevent this from reoccurring in the future, hopefully. Fixes https://github.com/rust-lang/rust/issues/42543. r? @alexcrichton cc @infinity0 @kyrias
2017-06-21rustbuild: Fix compiler docs yet againOliver Middleton-5/+5
Add support for `-Z force-unstable-if-unmarked` to rustdoc.
2017-06-21Make rustc errors colorful.Mark Simulacrum-0/+41
Rustbuild passes --message-format=json to Cargo to learn about the dependencies for a given build, which then makes Cargo steal the stderr/stdout for the compiler process, leading to non colorful output. To avoid this, detection of stderr being a tty is added to rustbuild, and an environment variable is used to communicate with the rustc shim.
2017-06-21Pass path to python from bootstrap.py to bootstrap.rsStepan Koltsov-0/+8
When bootstrap is executed with python not in `$PATH`, (e. g. `c:\Python27\python.exe x.py test`) bootstrap cannot find python and crashes. This commit passes path to python in `BOOTSTRAP_PYTHON` env var.
2017-06-20Fixes bootstrapping with custom cargo/rustc.Mark Simulacrum-9/+9
config.mk is now always read when parsing the configuration to prevent this from reoccurring in the future, hopefully.
2017-06-20Switch to the crates.io `getopts` crateAlex Crichton-1/+0
This commit deletes the in-tree `getopts` crate in favor of the crates.io-based `getopts` crate. The main difference here is with a new builder-style API, but otherwise everything else remains relatively standard.
2017-06-20Auto merge of #42571 - tlively:wasm-dev, r=alexcrichtonbors-0/+17
Enable wasm LLVM backend Enables compilation to WebAssembly with the LLVM backend using the target triple "wasm32-unknown-unknown". This is the beginning of my work on #38804. **edit:** The new new target is now wasm32-experimental-emscripten instead of wasm32-unknown-unknown.
2017-06-19Bump version and stage0 compilerAlex Crichton-41/+5
2017-06-18Rollup merge of #42720 - murarth:deprecated-collections, r=alexcrichtonMark Simulacrum-1/+2
Reintroduce deprecated `collections` crate