summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
AgeCommit message (Collapse)AuthorLines
2017-09-01bootstrap: 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.
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-3/+18
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-18fix casting of PRIO_PGRPQuietMisdreavus-9/+1
2017-05-18Move submodule initialization to bootstrap.pyTatsuyuki Ishi-118/+1
2017-05-18Add metadata suffix, close rust-lang/cargo#4028Tatsuyuki Ishi-5/+23
2017-05-16Add an option to run rustbuild on low priorityJohn Kåre Alsaker-3/+26
This is a resurrection of #40776, combining their Windows setup with an additional setup on Unix to set the program group's niceness to +10 (low-but-not-lowest priority) when the `low_priority` option is on.
2017-05-11rustbuild: Use `-Z force-unstable-if-unmarked`Alex Crichton-2/+5
2017-05-01Add profiling support, through the rustc -Z profile flag.whitequark-0/+3
When -Z profile is passed, the GCDAProfiling LLVM pass is added to the pipeline, which uses debug information to instrument the IR. After compiling with -Z profile, the $(OUT_DIR)/$(CRATE_NAME).gcno file is created, containing initial profiling information. After running the program built, the $(OUT_DIR)/$(CRATE_NAME).gcda file is created, containing branch counters. The created *.gcno and *.gcda files can be processed using the "llvm-cov gcov" and "lcov" tools. The profiling data LLVM generates does not faithfully follow the GCC's format for *.gcno and *.gcda files, and so it will probably not work with other tools (such as gcov itself) that consume these files.