about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
AgeCommit message (Collapse)AuthorLines
2020-04-25Detect git version before attempting to use --progressDillon Amburgey-11/+15
Otherwise each update is run twice and errors are printed
2020-03-21Remove CARGO_BUILD_TARGET from bootstrap.pylzutao-0/+4
2020-02-07PEP8 format spacingChris Simpkins-4/+3
2020-02-07remove unnecessary local variable assignment in context managerChris Simpkins-1/+1
2020-01-31Correctly reinstall rustfmt on channel changeMark Rousskov-4/+4
2019-12-21bootstrap.py fetches rustfmt.Adam Perry-3/+42
Co-Authored-By: Mark Rousskov <mark.simulacrum@gmail.com>
2019-12-01rustbuild: don't clobber RUSTFLAGS, append to itXimin Luo-5/+7
2019-11-12bootstrap: don't call support_xz in hot-pathGuanqun Lu-21/+22
2019-11-10download .tar.xz if python3 is usedGuanqun Lu-9/+23
2019-10-21Remove `src/llvm-emscripten` submoduleAlex Crichton-4/+0
With #65251 landed there's no need to build two LLVM backends and ship them with rustc, every target we have now uses the same LLVM backend! This removes the `src/llvm-emscripten` submodule and additionally removes all support from rustbuild for building the emscripten LLVM backend. Multiple codegen backend support is left in place for now, and this is intended to be an easy 10-15 minute win on CI times by avoiding having to build LLVM twice.
2019-09-09check git in bootstrap.py when trying to update submoduleGuanqun Lu-0/+8
2019-09-09use 'get_toml' instead of regular expressionGuanqun Lu-5/+15
2019-09-07Rollup merge of #64098 - Mark-Simulacrum:always-warn, r=alexcrichtonMazdak Farrokhzad-1/+2
Ensure edition lints and internal lints are enabled with deny-warnings=false Previously we only passed the deny command line flags if deny-warnings was enabled, but now we either pass -W... or -D... for each of the flags as appropriate. This is also a breaking change to x.py as it changes `--warnings=allow` to `--warnings=warn` which is what that flag actually did; we don't have an allow warnings mode.
2019-09-06it's more pythonic to use 'is not None' in python filesGuanqun Lu-1/+1
2019-09-04Ensure all warnings are emitted even on warnings=warnMark Rousskov-1/+2
2019-08-29Rollup merge of #63953 - crlf0710:bootstrap_mirroring, r=Mark-SimulacrumMazdak Farrokhzad-2/+14
bootstrap: allow specifying mirror for bootstrap compiler download.
2019-08-28bootstrap: allow specifying mirror for bootstrap compiler download.Charles Lew-2/+14
2019-08-27rustbuild: allow disabling deny(warnings) for bootstrapMarc-Antoine Perennou-0/+2
When deny-warnings is not specified or set to true, the behaviour is the same as before. When deny-warnings is set to false, warnings are now allowed Fixes #63911 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2019-07-09Update cargo-vendor usageEric Huss-24/+43
2019-05-13Remove bitrig support from rustMarcel Hellwig-1/+0
2019-04-29intelligently handle older version of git in bootstrapNathan Froyd-3/+9
If we fail to run with `--progress`, try running without instead. Fixes #57080.
2019-03-08Rollup merge of #58080 - MikaelUrankar:freebsd_arm, r=sanxiynPietro Albini-0/+4
Add FreeBSD armv6 and armv7 targets
2019-02-23Fix an indexing error when using `x.py help`varkor-1/+1
2019-02-13Add FreeBSD armv6 and armv7 targetsMikaelUrankar-0/+4
2019-01-25Rebase to the llvm-project monorepoJosh Stone-10/+2
The new git submodule src/llvm-project is a monorepo replacing src/llvm and src/tools/{clang,lld,lldb}. This also serves as a rebase for these projects to the new 8.x branch from trunk. The src/llvm-emscripten fork is unchanged for now.
2019-01-17Update bootstrap.pylenoil98-0/+3
Add PowerPC64 support on FreeBSD
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-24x.py: fixup 6130fc884bc1dff9bb835894a7bb2042c110b011Matthias Krüger-1/+1
./x.py used to automatically check out the right commit when a submodule was outdated and ./x.py build was run and submodules handling was enabled in config.toml (submodules = true). But it threw an error: [...] failed to run: git submodule -q sync --progress src/tools/clippy The commit removes the --progress from git submodule call. Fixes #57080
2018-12-17Add --progress to git submodule commandsClar Fon-2/+2
2018-11-22Move Cargo.{toml,lock} to the repository root directory.Eduard-Mihai Burtescu-1/+1
2018-11-12Fix TLS errors when downloading stage0Dan Robertson-2/+2
2018-11-02Remove all jemalloc-related contentAlex Crichton-5/+0
This commit removes all jemalloc related submodules, configuration, etc, from the bootstrap, from the standard library, and from the compiler. This will be followed up with a change to use jemalloc specifically as part of rustc on blessed platforms.
2018-10-26rustbuild: use configured linker to build boostrapMarc-Antoine Perennou-0/+3
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-10-01allow use of ./x.py help <cmd> ...Collins Abitekaniza-0/+5
2018-08-14Add lldb to the buildTom Tromey-0/+4
This optionally adds lldb (and clang, which it needs) to the build. Because rust uses LLVM 7, and because clang 7 is not yet released, a recent git master version of clang is used. The lldb that is used includes the Rust plugin. lldb is only built when asked for, or when doing a nightly build on macOS. Only macOS is done for now due to difficulties with the Python dependency.
2018-07-30Add timeout to use of `curl` in bootstrap.py.kennytm-1/+4
2018-07-10bootstrap: our best to achieve atomic rename on Win32NODA, Kai-1/+6
This is a tricky operation to implement on Win32; see https://ci.appveyor.com/project/nodakai/python-win-behavior Signed-off-by: NODA, Kai <nodakai@gmail.com>
2018-07-10bootstrap: write texts to a .tmp file first for atomicityNODA, Kai-3/+11
If you are using a hard-linked file as your config.toml, this change will affect the way other instances of the file is modified. The original version would modify all other instances whereas the new version will leave others unchanged, reducing the ref count by one. Signed-off-by: NODA, Kai <nodakai@gmail.com>
2018-07-02bootstrap: tests should use rustc from config.tomlNikolai Merinov-0/+2
Tests should always use "rustc" and "cargo" from config.toml instead of assuming that stage0 binaries was downloaded to build directory.
2018-07-01Also run the bootstrap in bootstrap modeOliver Schneider-0/+1
2018-05-31bootstrap.py: respect crt-staticJohannes Nixdorf-3/+30
Bootstrap requires serde_derive, which needs proc-macro crate types, so it won't work with crt-static.
2018-05-17Revert "bootstrap.py: respect crt-static"Alex Crichton-30/+3
This reverts commit 5ecf29df052c7eca10fccc96f4179d338fe0014e.
2018-04-29bootstrap.py: respect crt-staticJohannes Nixdorf-3/+30
Bootstrap requires serde_derive, which needs proc-macro crate types, so it won't work with crt-static.
2018-04-06bootstrap: Remove the fast pathTatsuyuki Ishi-4/+1
This is rarely noticed, but when you have old submodules, not updating them will cause you run into https://github.com/rust-lang/cargo/issues/4678.
2018-04-03Stop accessing current_dir in bootstrapMark Simulacrum-1/+4
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-30Handle fast-submodules option correctlyPetr Hosek-1/+1
This option was introduced in 72cb109bec8, but it uses two different spellings (fast-submodule vs fast-submodules) and isn't handled by Rust bootstrap which means that any attempt to set this flag fails.
2018-03-17Rollup merge of #49057 - Zoxc:fast-submodules, r=alexcrichtonkennytm-12/+50
Faster submodule updating For the common case when there are no submodules which need updating, this takes 0.48 seconds instead of 47 seconds. r? @alexcrichton
2018-03-15Support extra-verbose builds:comex-8/+5
- 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-03-15Faster submodule updatingJohn Kåre Alsaker-12/+50