summary refs log tree commit diff
path: root/src/bootstrap/dist.rs
AgeCommit message (Collapse)AuthorLines
2017-09-27Rename rls component to rls-preview on nightlyNick Cameron-13/+4
2017-09-17Prevent distribution if miri is enabledOliver Schneider-0/+25
2017-09-14Attempt to fix the component manifest problem for rls-previewNick Cameron-4/+13
cc #44270
2017-09-12Auto merge of #44413 - est31:move_man, r=nikomatsakisbors-2/+1
Move the man directory to a subdirectory There is no reason it should be in the top directory.
2017-09-11rustbuild: Fix a distribution bug with rustdocAlex Crichton-0/+1
Apparently `File::create` was called when there was an existing hard link or the like, causing an existing file to get accidentally truncated! Closes #44487
2017-09-09rustbuild: Switch back to using hard linksAlex Crichton-2/+6
The `copy` function historically in rustbuild used hard links to speed up the copy operations that it does. This logic was backed out, however, in #39518 due to a bug that only showed up on Windows, described in #39504. The cause described in #39504 happened because Cargo, on a fresh build, would overwrite the previous artifacts with new hard links that Cargo itself manages. This behavior in Cargo was fixed in rust-lang/cargo#4390 where it no longer should overwrite files on fresh builds, opportunistically leaving the filesystem intact and not touching it. Hopefully this can help speed up local builds by doing fewer copies all over the place!
2017-09-08Move the man directory to a subdirectoryest31-2/+1
There is no reason it should be in the top directory.
2017-09-06Rollup merge of #44321 - ↵Mark Simulacrum-1/+4
jakllsch:jakllsch-4f2d6c87-2674-43e4-9c5f-2415136e6bdc, r=Mark-Simulacrum bootstrap: only include docs in extended distribution if enabled Fixes #44163
2017-09-06Rollup merge of #44218 - SimonSapin:commit-hash, r=alexcrichtonMark Simulacrum-0/+9
Add full git commit hash to release channel manifests The full hash is necessary to build the download URL for "alternate" compiler builds. This is a first step for https://github.com/rust-lang-nursery/rustup.rs/issues/1099.
2017-09-04bootstrap: only include docs in extended distribution if enabledJonathan A. Kollasch-1/+4
Issue #44163
2017-09-04Only include git-commit-hash in tarballs when availableSimon Sapin-6/+9
… instead of writing an empty file.
2017-09-01Add git-commit-hash in source and extended tarballs too.Simon Sapin-0/+4
2017-08-31Add full git commit hash to release channel manifestsSimon Sapin-0/+2
The full hash is necessary to build the download URL for "alternate" compiler builds. This is a first step for https://github.com/rust-lang-nursery/rustup.rs/issues/1099
2017-08-30rustbuild: update the rust-src filter for compiler-rtJosh Stone-1/+1
We wanted `src/compiler-rt/test` filtered from the `rust-src` package, but that path is now `src/libcompiler_builtins/compiler-rt/test`. This saves over half of the installed rust-src size. (50MB -> 22MB)
2017-08-29Rollup merge of #44076 - RalfJung:src, r=alexcrichtonAriel Ben-Yehuda-0/+6
include Cargo.{toml,lock} in rust-src tarball The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense. I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.
2017-08-27rustbuild: Rewrite the configure script in PythonAlex Crichton-0/+1
This commit rewrites our ancient `./configure` script from shell into Python. The impetus for this change is to remove `config.mk` which is just a vestige of the old makefile build system at this point. Instead all configuration is now solely done through `config.toml`. The python script allows us to more flexibly program (aka we can use loops easily) and create a `config.toml` which is based off `config.toml.example`. This way we can preserve comments and munge various values as we see fit. It is intended that the configure script here is a drop-in replacement for the previous configure script, no functional change is intended. Also note that the rationale for this is also because our build system requires Python, so having a python script a bit earlier shouldn't cause too many problems. Closes #40730
2017-08-26Do not include the src/Cargo.tomlRalf Jung-1/+0
distcheck complains that this file references projects not cotnained in the tarball
2017-08-24include Cargo.{toml,lock} in rust-src tarballRalf Jung-0/+7
2017-08-13Build rustdoc only at the top stageMark Simulacrum-2/+1
2017-08-13Unify flags into config.Mark Simulacrum-1/+1
This introduces a slight change in behavior, where we unilaterally respect the --host and --target parameters passed for all sanity checking and runtime configuration.
2017-07-27Build rustdoc on-demand.Mark Simulacrum-0/+3
Rustdoc is no longer compiled in every stage, alongside rustc, instead it is only compiled when requested, and generally only for the last stage.
2017-07-27Change tools to take a compiler instead of a stage.Mark Simulacrum-2/+8
2017-07-24Make dist equivalent to old build system.Mark Simulacrum-85/+77
2017-07-22Make distcheck work again.Mark Simulacrum-1/+2
2017-07-20Change make_run signature to taking a RunConfig struct for refactorability.Mark Simulacrum-68/+41
2017-07-20Add an optional condition to constrain defaults.Mark Simulacrum-13/+6
Utilized primarily to not be a default rule unless some configuration is given (e.g., compiler docs are enabled).
2017-07-20Remove step.rs commentsMark Simulacrum-110/+0
2017-07-20Implement available paths list.Mark Simulacrum-25/+25
2017-07-20Utilize interning to allow Copy/Clone stepsMark Simulacrum-84/+104
2017-07-20Remove core_intrinsics feature gateMark Simulacrum-0/+12
2017-07-20Cleanups and fixes throughoutMark Simulacrum-109/+90
2017-07-20Fix a few errors introduced during rebase.Mark Simulacrum-23/+70
2017-07-20Finish fixing warnings and errors. Bootstrap builds.Mark Simulacrum-1/+1
2017-07-20Fixes warnings and errors introduced while moving code aroundMark Simulacrum-33/+36
2017-07-20Change code to work with the new systemMark Simulacrum-12/+185
2017-07-20Move code into Step trait implementations.Mark Simulacrum-821/+944
No changes are introduced to code body. This commit will not build; it is done to permit a better diff in later commits.
2017-07-20Move rule configs out of stepMark Simulacrum-0/+102
2017-07-07Fix stage 2 builds with a custom libdir.Matthew Dawson-2/+3
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-1/+1
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-05Switch to rust-lang-nursery/compiler-builtinsAlex Crichton-1/+1
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-7/+7
2017-07-04Remove src_is_git, instead call method on rust_info directly.Mark Simulacrum-1/+1
2017-07-04Clarify meaning of Build.cargo, Build.rustc.Mark Simulacrum-4/+4
Rename Build.{cargo, rustc} to {initial_cargo, initial_rustc}.
2017-07-04Clippy lintsMark Simulacrum-6/+5
2017-07-04Cleanup distMark Simulacrum-21/+11
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-17Reintroduce deprecated `collections` crateMurarth-0/+1
2017-06-15Auto merge of #42648 - murarth:merge-alloc-collections, r=alexcrichtonbors-2/+1
Merge crate `collections` into `alloc` This is a necessary step in order to merge #42565
2017-06-13Merge crate `collections` into `alloc`Murarth-2/+1
2017-06-13Add libprofiler_builtins to the list of paths for the rust-src componentMarco Castelluccio-0/+1