about summary refs log tree commit diff
path: root/src/bootstrap/flags.rs
AgeCommit message (Collapse)AuthorLines
2019-03-25Save coverage file in build_base path, not /tmpPhilipp Hansch-1/+1
2019-03-24Add a way to track Rustfix UI test coveragePhilipp Hansch-0/+15
This came out of the first Rustfix WG meeting. One of the goals is to enable Rustfix tests for all UI tests that trigger lints with `MachineApplicable` suggestions. In order to do that we first want to create a tracking issue that lists all files with missing `// run-rustfix` headers. This PR adds a `--rustfix-coverage` flag to `./x.py` and compiletest to list the files with the missing headers in `/tmp/rustfix_missing_coverage.txt`. From that file we can create the tracking issue and at some point also enforce the `// run-rustfix` flag on UI tests with `MachineApplicable` lints.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-10bootstrap: fix editionljedrz-5/+5
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-2/+2
2018-10-26bootstrap: clean up a few clippy findingsMatthias Krüger-10/+9
remove useless format!()s remove redundant field names in a few struct initializations pass slice instead of a vector to a function use is_empty() instead of comparisons to .len() No functional change intended.
2018-08-28expand keep-stage --help textRalf Jung-1/+2
2018-07-30improve test stage documentationRalf Jung-2/+6
2018-07-30improve --stage documentationRalf Jung-1/+4
2018-07-14Change keep-stage to only affect the passed stageMark Rousskov-3/+5
The best way to build a stage 2 rustc is now probably ./x.py build --stage 2 src/rustc # once ./x.py build --stage 2 --keep-stage 1 src/rustc
2018-05-30Run rustfmtSantiago Pastorino-98/+130
2018-05-30Add compare-mode to x.pySantiago Pastorino-0/+11
2018-05-17Make `bless` a flag instead of a subcommandOliver Schneider-10/+10
2018-05-17Add `bless` x.py subcommand for easy ui test replacementOliver Schneider-0/+12
2018-05-06s/DocTestsOption/DocTests/gkennytm-7/+7
2018-05-06Added `./x.py test --no-doc` option.kennytm-6/+13
This enables `./x.py test --stage 0 src/libstd --no-doc` and ensures the stage2-rustc and rustdoc need to be built.
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-0/+6
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-07Don't default to stage 1 with incrementalTamir Duberstein-7/+1
Closes #43177.
2018-04-03Refactor to use a dry-run config instead of cfg(test)Mark Simulacrum-1/+3
This ensures that each build will support the testing design of "dry running" builds. It's also checked that a dry run build is equivalent step-wise to a "wet" run build; the graphs we generate when running are directly compared node/node and edge/edge, both for order and contents.
2018-04-03Stop accessing current_dir in bootstrapMark Simulacrum-8/+0
This ensures that the working directory of rustbuild has no effect on it's run; since tests will run with a different cwd this is required for consistent behavior.
2018-03-15Support extra-verbose builds:comex-1/+1
- The bootstrap crate currently passes -v to Cargo if itself invoked with -vv. But Cargo supports -vv (to show build script output), so make bootstrap pass that if itself invoked with -vvv. (More specifically, pass N '-v's to Cargo if invoked with N+1 of them.) - bootstrap.py currently tries to pass on up to two '-v's to cargo when building bootstrap, but incorrectly ('-v' is marked as 'store_true', so argparse stores either False or True, ignoring multiple '-v's). Fix this, allow passing any number of '-v's, and make it consistent with bootstrap's invocation of Cargo (i.e. subtract one from the number of '-v's). - Also improve bootstrap.py's config.toml 'parsing' to support arbitrary verbosity levels, + allow command line to override it.
2018-02-26Fix error-format argument to x.pyMark Simulacrum-1/+1
2018-02-24Added error-format flag to x.py.penpalperson-0/+3
2018-02-17Add command to launch only doc testsGuillaume Gomez-0/+10
2018-02-15Consider paths passed to x.py to be root-relative.Mark Simulacrum-6/+2
We'd previously assumed that these paths would be relative to the src dir, and that for example our various CI scripts would, when calling x.py, use `../x.py build ../src/tools/...` but this isn't the case -- they use `../x.py` without using the relevant source-relative path. We eventually may want to make this (actually somewhat logical) change, but this is not that time.
2018-02-10Make exclude and paths relative to root of checkoutMark Simulacrum-7/+10
2018-02-10Implement excluding a build-step via --excludeMark Simulacrum-2/+5
2018-01-23Add ./x.py check src/{libstd,libtest,rustc}.Mark Simulacrum-0/+23
This currently only supports a limited subset of the full compilation, but is likely 90% of what people will want and is possible without building a full compiler (i.e., running LLVM). In theory, this means that contributors who don't want to build LLVM now have an easy way to compile locally, though running tests won't work.
2018-01-19Add rustc-args option to test runnerSantiago Pastorino-0/+17
2017-10-27Return 0 when ./x.py has no subcommandtopecongiro-2/+5
2017-09-20Do not show "available paths" help in ./x.py cleanTommy Ip-5/+6
2017-09-20Add --all flag to ./x.py cleanTommy Ip-2/+8
This flag removes all build artifacts, including the LLVM build directory.
2017-08-27Fail ./x.py on invalid commandMichal 'vorner' Vaner-1/+1
Make the ./x.py script fail when run with an invalid command, like: ./x.py nonsense This helps in case of chaining multiple runs, eg.: ./x.py biuld && ./x.py test
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-7/+7
Like #43008 (f668999), but _much more aggressive_.
2017-08-13Allow overriding build triple via flag.Mark Simulacrum-4/+2
We first check the configuration, then passed parameters (--build), then fall back to the auto-detection that bootstrap.py does. Fixes #39673.
2017-08-13Unify flags into config.Mark Simulacrum-4/+11
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-20Implement available paths list.Mark Simulacrum-5/+3
2017-07-20Utilize interning to allow Copy/Clone stepsMark Simulacrum-7/+11
2017-07-20Fixes warnings and errors introduced while moving code aroundMark Simulacrum-5/+6
2017-07-04Store verbosity on BuildMark Simulacrum-10/+0
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-4/+4
This makes later negation much easier to interpret.
2017-07-04Clarify meaning of Build.cargo, Build.rustc.Mark Simulacrum-2/+7
Rename Build.{cargo, rustc} to {initial_cargo, initial_rustc}.
2017-07-04Clippy lintsMark Simulacrum-4/+2
2017-07-04Clean up and restructure sanity checking.Mark Simulacrum-1/+1
2017-07-04Don't allocate args in order to run find.Mark Simulacrum-10/+9
2017-06-16Use custom cargo/rustc paths when parsing flags.Mark Simulacrum-9/+8
2017-06-07bootstrap: further clarify build --helpRalf Jung-2/+3
2017-06-06bootstrap: improve 'build --help' by explaining what exactly the last ↵Ralf Jung-1/+5
example does
2017-06-02rustbuild: Add `./x.py test --no-fail-fast`Josh Stone-1/+13
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-05-22rustbuild: split Install out of Dist subcommandMarc-Antoine Perennou-5/+12
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>