summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
AgeCommit message (Collapse)AuthorLines
2017-09-29Rollup merge of #44694 - tommyip:make_clean, r=Mark-SimulacrumMark Simulacrum-2/+2
Add --all flag to ./x.py clean This make `clean` removes the LLVM and download cache directory as well. Fixes #44214. r? @Mark-Simulacrum
2017-09-28Update to the `cc` crateAlex Crichton-6/+6
This is the name the `gcc` crate has moved to
2017-09-20Add --all flag to ./x.py cleanTommy Ip-2/+2
This flag removes all build artifacts, including the LLVM build directory.
2017-09-18rustbuild: with --no-fail-fast, report the specific commands that failedXimin Luo-4/+14
2017-09-17Add a file to trivially disable tool building or testingOliver Schneider-10/+19
2017-08-31Add full git commit hash to release channel manifestsSimon Sapin-0/+5
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-30Auto merge of #44143 - alexcrichton:faster-bootstrap, r=Mark-Simulacrumbors-1/+1
rustbuild: Avoid some extraneous rustc compiles on cross builds This tweaks a few locations here and there to avoid compiling rustc too many times on our cross-builders on CI. Closes https://github.com/rust-lang/rust/issues/44132
2017-08-28rustbuild: Fix uplifting stage1 on cross buildsAlex Crichton-1/+1
When we pass `--host` the `self.hosts` array doesn't contain `self.build`, so check `self.build` to see if we can uplift.
2017-08-28bootstrap: remove unneeded extern crateTatsuyuki Ishi-1/+0
The crate itself is internally referenced by serde_derive.
2017-08-22Inline crt-static choice for pc-windows-msvcSamuel Holland-2/+6
This avoids the possibility of a duplicate or conflicting crt-static command line option sent to rustc.
2017-08-22Introduce crt_static target option in config.tomlSamuel Holland-0/+6
This controls the value of the crt-static feature used when building the standard library for a target, as well as the compiler itself when that target is the host.
2017-08-17Rollup merge of #43891 - Fourchaux:master, r=steveklabnikCorey Farwell-1/+1
Fix typos & us spellings Fixing some typos and non en-US spellings. (Update of PR https://github.com/rust-lang/rust/pull/42812 )
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-7/+7
Like #43008 (f668999), but _much more aggressive_.
2017-08-15Fix typos & us spellingsFourchaux-1/+1
2017-08-13Add ability to ignore git when building rust.Mark Simulacrum-3/+3
Some users of the build system change the git sha on every build due to utilizing git to push changes to a remote server. This allows them to simply configure that away instead of depending on custom patches to rustbuild.
2017-08-13Unify flags into config.Mark Simulacrum-37/+18
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-08-11Build support for no llvmbjorn3-0/+3
2017-07-20Change make_run signature to taking a RunConfig struct for refactorability.Mark Simulacrum-1/+1
2017-07-20Utilize interning to allow Copy/Clone stepsMark Simulacrum-65/+69
2017-07-20Remove core_intrinsics feature gateMark Simulacrum-1/+0
2017-07-20Fix a few errors introduced during rebase.Mark Simulacrum-13/+1
2017-07-20Update to toml 0.4Mark Simulacrum-1/+0
2017-07-20Document the process more thoroughlyMark Simulacrum-17/+66
2017-07-20Finish fixing warnings and errors. Bootstrap builds.Mark Simulacrum-31/+1
2017-07-20Move cargo() to BuilderMark Simulacrum-174/+0
2017-07-20Fix tool_cmdMark Simulacrum-6/+0
2017-07-20Move tool_cmd to tool.rsMark Simulacrum-39/+0
2017-07-20Fixes warnings and errors introduced while moving code aroundMark Simulacrum-53/+25
2017-07-20Add Builder and Step definitions.Mark Simulacrum-5/+29
2017-07-20Move rule configs out of stepMark Simulacrum-1/+0
2017-07-17Allow remote testing remotely when `TEST_DEVICE_ADDR` is setMátyás Mustoha-1/+2
2017-07-07Fix stage 2 builds with a custom libdir.Matthew Dawson-2/+8
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-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-04Use build.build instead of build.config.buildMark Simulacrum-1/+1
2017-07-04Move targets, hosts, and build triple into Build.Mark Simulacrum-1/+37
2017-07-04Store verbosity on BuildMark Simulacrum-4/+13
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-1/+2
This makes later negation much easier to interpret.
2017-07-04Remove src_is_git, instead call method on rust_info directly.Mark Simulacrum-2/+0
2017-07-04Clarify meaning of Build.cargo, Build.rustc.Mark Simulacrum-24/+14
Rename Build.{cargo, rustc} to {initial_cargo, initial_rustc}.
2017-07-04Update a few comments.Mark Simulacrum-8/+6
2017-07-04Clippy lintsMark Simulacrum-7/+7
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-22Make Build.cxx() return a Result instead of panickingIan Douglas Scott-7/+10
2017-06-22Set CXX_<target> in bootstrapIan Douglas Scott-0/+1
2017-06-19Bump version and stage0 compilerAlex Crichton-23/+0
2017-06-16Auto merge of #42612 - est31:master, r=nagisabors-0/+5
Autogenerate stubs and SUMMARY.md in the unstable book Removes a speed bump in compiler development by autogenerating stubs for features in the unstable book. See #42454 for discussion. The PR contains three commits, separated in order to make review easy: * The first commit converts the tidy tool from a binary crate to a crate that contains both a library and a binary. In the second commit, we'll use the tidy library * The second and main commit introduces autogeneration of SUMMARY.md and feature stub files * The third commit turns off the tidy lint that checks for features without a stub, and removes the stub files. A separate commit due to the large number of files touched Members of the doc team who wish to document some features can either do this (where `$rustsrc` is the root of the rust repo git checkout): 1. cd to `$rustsrc/src/tools/unstable-book-gen` and then do `cargo run $rustsrc/src $rustsrc/src/doc/unstable-book` to put the stubs into the unstable book 2. cd to `$rustsrc` and run `git ls-files --others --exclude-standard` to list the newly added stubs 3. choose a file to edit, then `git add` it and `git commit` 4. afterwards, remove all changes by the tool by doing `git --reset hard` and `git clean -f` Or they can do this: 1. remove the comment marker in `src/tools/tidy/src/unstable_book.rs` line 122 2. run `./x.py test src/tools/tidy` to list the unstable features which only have stubs 3. revert the change in 1 3. document one of the chosen unstable features The changes done by this PR also allow for further development: * tidy obtains information about tracking issues. We can now forbid differing tracking issues between differing `#![unstable]` annotations. I haven't done this but plan to in a future PR * we now have a general framework for generating stuff for the unstable book at build time. Further changes can autogenerate a list of the API a given library feature exposes. The old way to simply click through the documentation after it has been uploaded to rust-lang.org works as well. r? @nagisa Fixes #42454
2017-06-14Autogenerate stubs and the summary of the unstable bookest31-0/+5
2017-06-04Merge branch 'profiling' of github.com:whitequark/rust into profilingMarco Castelluccio-0/+3
2017-06-02rustbuild: Add `./x.py test --no-fail-fast`Josh Stone-1/+20
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-02ci: Improve log output (mainly Travis).kennytm-1/+19
* 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.