about summary refs log tree commit diff
path: root/src/bootstrap/flags.rs
AgeCommit message (Collapse)AuthorLines
2020-05-05Add command aliases from Cargo to x.py commandsmibac138-13/+17
2020-04-02bootstrap: add `--json-output` for rust-analyzerNiko Matsakis-0/+3
2020-03-24ci: add github actions configurationPietro Albini-0/+24
2020-03-11Rollup merge of #69603 - chrissimpkins:tidy-docs-update, r=petrochenkovMazdak Farrokhzad-1/+5
tidy: replace `make check` with `./x.py test` in documentation This PR includes a minor documentation update for tidy. It replaces the `make check` approach with `./x.py test` and describes how to execute the tidy checks (only) with ~~`./x.py test src/tools/tidy`~~ `./x.py test tidy`.
2020-03-09remove trailing whitespace (tidy)Chris Simpkins-1/+1
2020-03-09Add documentation of tool testing with x.py scriptChris Simpkins-2/+6
2020-03-06fix various typosMatthias Krüger-1/+1
2020-02-03bootstrap: fix clippy warningsMatthias Krüger-1/+1
2020-01-22bootstrap: update clippy subcmd decriptionMatthias Krüger-1/+1
Clarify where the clippy used in `./x.py clippy` is coming from. It uses whatever clippy binary was installed via rustup, cargo-install or otherwise and does NOT use the binary generated by `./x.py build src/tools/clippy`.
2020-01-10Match llvm-skip-rebuild flagMatthew Healy-0/+5
2020-01-09Add llvm-skip-rebuild to optsMatthew Healy-0/+8
2019-12-22Format the worldMark Rousskov-60/+37
2019-12-21Implement `./x.py fmt [--check]`.Adam Perry-1/+25
2019-11-10make the error message more readableGuanqun Lu-3/+3
2019-09-04Rename --warnings=allow to --warnings=warnMark Rousskov-3/+3
We never allowed the warnings, only made them not denied.
2019-07-27Remove run-pass test suitesVadim Petrochenkov-1/+1
2019-07-05Lint on invalid values passed to x.py --warningsMark Rousskov-3/+21
This also introduces support for `--warnings allow` and fixes --warnings being overridden by the configuration file, config.toml.
2019-06-24bootstrap: pass '--pass' on to compiletest.Mazdak Farrokhzad-0/+17
2019-05-25Add clippy and fix commands to x.pyljedrz-0/+34
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