summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2017-07-13Bump 1.19 prerelease to .4Brian Anderson-1/+1
2017-07-13[beta] Remove rls from the workspace and extended buildsJosh Stone-8/+1
Its git dependencies don't work when building with vendored crates, so for now it will just be removed from the workspace and disabled in the rustbuild rules. cc #42719
2017-07-07Bump prerelease versionBrian Anderson-1/+1
2017-07-03rustbuild: set __CARGO_DEFAULT_LIB_METADATA to channelMarc-Antoine Perennou-1/+1
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-06-22Use custom cargo/rustc paths when parsing flags.Mark Simulacrum-9/+8
2017-06-22Fixes 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-13Bump beta prerelease versionBrian Anderson-1/+1
2017-06-05Revert "Add RLS to .exe and .msi installers"Alex Crichton-36/+0
This reverts commit eeebfd667bd1524476229ecb910f9751405e85c7.
2017-06-05Revert "Add RLS to .pkg installer"Alex Crichton-10/+0
This reverts commit 7c362732dc49d7ab6d3fcf973922337dae53dd5c.
2017-06-03Rollup merge of #42382 - alexcrichton:remove-rustflags, r=Mark-SimulacrumCorey Farwell-6/+0
rustbuild: Remove RUSTFLAGS logic in rustc shim This was added in #38072 but I can't recall why and AFAIK Cargo already handles this. This was discovered through #42146 where passing duplicate flags was causing problems.
2017-06-03Rollup merge of #42363 - cuviper:no-fail-fast, r=alexcrichtonCorey Farwell-19/+89
rustbuild: Add `./x.py test --no-fail-fast` This option forwards to each `cargo test` invocation, and applies the same logic across all test steps to keep going after failures. At the end, a brief summary line reports how many commands failed, if any. Note that if a test program fails to even start at all, or if an auxiliary build command related to testing fails, these are still left to stop everything right away. Fixes #40219.
2017-06-03Rollup merge of #42354 - Mark-Simulacrum:reduce-verbosity, r=alexcrichtonCorey Farwell-1/+1
Reduce verbosity of build logs This does two separate things. - Sets sccache logging to warn instead of info. - Makes tests when running for a given PR (not on auto branch) quiet. (cc @eddyb) r? @alexcrichton
2017-06-02Reduce sccache log level.Mark Simulacrum-1/+1
2017-06-02rustbuild: Remove RUSTFLAGS logic in rustc shimAlex Crichton-6/+0
This was added in #38072 but I can't recall why and AFAIK Cargo already handles this. This was discovered through #42146 where passing duplicate flags was causing problems.
2017-06-02rustbuild: Add `./x.py test --no-fail-fast`Josh Stone-19/+89
This option forwards to each `cargo test` invocation, and applies the same logic across all test steps to keep going after failures. At the end, a brief summary line reports how many commands failed, if any. Note that if a test program fails to even start at all, or if an auxiliary build command related to testing fails, these are still left to stop everything right away. Fixes #40219.
2017-06-02Rollup merge of #42225 - brson:vs2017, r=alexcrichtonMark Simulacrum-1/+1
Support VS 2017 Fixes #38584 This replaces all the MSVC linker logic with that from the 'gcc' crate. The code looks the same, but there could be regressions. I've only tested this with x86_64. r? @alexcrichton cc @vadimcn @retep998
2017-06-01Support VS 2017Brian Anderson-1/+1
Fixes #38584
2017-06-02ci: Further tone down the test verbosity.kennytm-5/+9
When `--quiet` is passed to rustbuild, suppress rustdoc test output unless failure. Added a `--quiet` flag to `tidy`, which suppresses the features table. The actual `--quiet` flag is enabled in #42354. Since details of failed tests will still be printed, and the name of slow tests taking >60 to runtime will also be printed, the debugging difficulty caused by information loss should be minimal; but it is very worthwhile to keep the log under 10000 lines on Travis CI so that common errors can be spotted without reading the raw log.
2017-06-02ci: Improve log output (mainly Travis).kennytm-3/+135
* Bring back colors on Travis, which was disabled since #39036. Append --color=always to cargo when running in CI environment. * Removed `set -x` in the shell scripts. The `retry` function already prints which command it is running, add `-x` just add noise to the output. * Support travis_fold/travis_time. Matching pairs of these allow Travis CI to collapse the output in between. This greatly cut down the unnecessary "successful" output one need to scroll through before finding the failed statement.
2017-06-01Auto merge of #42263 - alexcrichton:fix-copies, r=Mark-Simulacrumbors-84/+178
rustbuild: Fix copying duplicate crates into the sysroot After compiling a project (e.g. libstd, libtest, or librustc) rustbuild needs to copy over all artifacts into the sysroot of the compiler it's assembling. Unfortunately rustbuild doesn't know precisely what files to copy! Today it has a heuristic where it just looks at the most recent version of all files that look like rlibs/dylibs and copies those over. This unfortunately leads to bugs with different versions of the same crate as seen in #42261. This commit updates rustbuild's strategy of copying artifacts to work off the list of artifacts produced by `cargo build --message-format=json`. The build system will now parse json messages coming out of Cargo to watch for files being generated, and then it'll only copy over those precise files. Note that there's still a bit of weird logic where Cargo prints that it's creating `libstd.rlib` where we actually want `libstd-xxxxx.rlib`, so we still do a bit of "most recent file" probing for those. This commit should take care of the crates.io dependency issues, however, as they're all copied over precisely. Closes #42261
2017-06-01Rollup merge of #42306 - efyang:rls-packaging, r=alexcrichtonCorey Farwell-0/+46
Add the RLS to .exe, .msi, and .pkg installers This directly addresses issue #42157, adding the RLS as a non-default component in the mentioned installers. The windows installers appear to have the right functionality added, but I don't have a machine that runs OSX, so it would be great if someone could test whether my .pkg commit adds the RLS correctly. The final commit also fixes some formatting issues I'd noticed while working on the installers, but I don't know if that's within the scope of this PR, so input would be appreciated.
2017-05-30rustbuild: Fix copying duplicate crates into the sysrootAlex Crichton-84/+178
After compiling a project (e.g. libstd, libtest, or librustc) rustbuild needs to copy over all artifacts into the sysroot of the compiler it's assembling. Unfortunately rustbuild doesn't know precisely what files to copy! Today it has a heuristic where it just looks at the most recent version of all files that look like rlibs/dylibs and copies those over. This unfortunately leads to bugs with different versions of the same craet as seen in #42261. This commit updates rustbuild's strategy of copying artifacts to work off the list of artifacts produced by `cargo build --message-format=json`. The build system will now parse json messages coming out of Cargo to watch for files being generated, and then it'll only copy over those precise files. Note that there's still a bit of weird logic where Cargo prints that it's creating `libstd.rlib` where we actually want `libstd-xxxxx.rlib`, so we still do a bit of "most recent file" probing for those. This commit should take care of the crates.io dependency issues, however, as they're all copied over precisely. Closes #42261
2017-05-29Add RLS to .pkg installerEdward Yang-0/+10
2017-05-29Add RLS to .exe and .msi installersEdward Yang-0/+36
2017-05-28rust-src: include everything needed to compile libstd with jemallocRalf Jung-6/+21
2017-05-27Auto merge of #42109 - Keruspe:master, r=alexcrichtonbors-141/+207
rustbuild: don't create a source tarball when installing This splits Install out of Dist as it is not a full dist anymore, and creates the source tarball only for the Dist command. This will allow splitting install in a few rules if we want as it's done for other phases.
2017-05-26Auto merge of #42081 - ishitatsuyuki:submodule-better, r=aidanhsbors-86/+78
Use the improved submodule handling r? @alexcrichton That was a crap... ``` Updating submodules Traceback (most recent call last): File "./x.py", line 20, in <module> bootstrap.main() File "/home/ishitatsuyuki/Documents/rust/src/bootstrap/bootstrap.py", line 684, in main bootstrap() File "/home/ishitatsuyuki/Documents/rust/src/bootstrap/bootstrap.py", line 662, in bootstrap rb.update_submodules() File "/home/ishitatsuyuki/Documents/rust/src/bootstrap/bootstrap.py", line 566, in update_submodules path = line[1:].split(' ')[1] TypeError: a bytes-like object is required, not 'str' ``` Maybe we need to confirm the compatibility of git options, such as `git config` or `git -C` (I believe they existed long before, though). This is tested locally.
2017-05-25Auto merge of #41932 - wesleywiser:py-to-rust, r=alexcrichtonbors-17/+137
Rewrite make-win-dist.py in Rust Fixes #41568
2017-05-25bootstrap.py: support verbose for submodulesTatsuyuki Ishi-3/+3
2017-05-25bootstrap.py: decode to strTatsuyuki Ishi-11/+10
Also, improve the split mechanism to address space in paths.
2017-05-25bootstrap.py: Filter instead of iterationTatsuyuki Ishi-9/+8
2017-05-25Format bootstrap.py using autopep8Tatsuyuki Ishi-35/+59
2017-05-25Use the improved submodule handlingTatsuyuki Ishi-48/+18
2017-05-24bootstrap: Use common run() function to call cargoDennis Schridde-18/+12
This brings verbosity even to invocation of cargo itself
2017-05-24bootstrap: Make bootstrap verbose if requestedDennis Schridde-0/+4
Fixes: #42099
2017-05-24bootstrap: Actually respect verbosity setting in config.tomlDennis Schridde-0/+5
2017-05-24rustbuild: distcheck needs rust-src tooMarc-Antoine Perennou-0/+1
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-23rustbuild: make distcheck depend on dist-plain-source-tarballMarc-Antoine Perennou-1/+1
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-23rustbuild: drop unused macro in tetsMarc-Antoine Perennou-4/+0
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-22Create the bin dirWesley Wiser-0/+1
2017-05-22rustbuild: split Install out of Dist subcommandMarc-Antoine Perennou-137/+206
only create source tarball for the Dist subcommand mark install rule as default for Kind::Install split install-docs split install-std factor out empty_dir handling split install-cargo split install-analysis split install-src rework install-rustc properly handle cross-compilation setups for install use pkgname in install split plain source tarball generation from rust-src dist document src-tarball in config.toml.exmaple Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-22bootstrap: fix minor comment typos in lib.rsAnders Papitto-6/+6
I noticed these while reading through the build system documentation. They're hardly worth fixing, but I'm also using this to get my feet wet with the rustc contribution system.
2017-05-20Auto merge of #42069 - QuietMisdreavus:low_pri, r=alexchrichtonbors-4/+33
Add an option to run rustbuild on low priority on Windows and Unix This is a resurrection of #40776, combining their Windows setup with an additional setup on Unix to set the program group's *nice*ness to +10 (low-but-not-lowest priority, mirroring the priority in the Windows setup) when the `low_priority` option is on.
2017-05-19Rollup merge of #42089 - nagisa:xpy-broke-on-py3-again⁈, r=alexcrichtonMark Simulacrum-3/+4
Fix x.py Fixes https://github.com/rust-lang/rust/issues/42085
2017-05-18fix casting of PRIO_PGRPQuietMisdreavus-9/+1
2017-05-18Fix x.pySimonas Kazlauskas-3/+4
2017-05-18rustbuild: refactor installMarc-Antoine Perennou-81/+98
Introduce a new Installer object that hold a reference to all the configured paths for installation Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-18rustbuild: install rust-analysis and rust-src when extended build is enabledMarc-Antoine Perennou-8/+18
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-05-18update config name and description for low-priorityQuietMisdreavus-2/+3
2017-05-18Auto merge of #41639 - ishitatsuyuki:unify-tools, r=alexcrichtonbors-130/+112
Unify tools building Close #41601 Time saving for up to 10 minutes. Cargo is now only compiled once. Downsides: - Out of tree Cargo.lock maintenance - Cargo.toml `[replace]` version maintenance