about summary refs log tree commit diff
path: root/src/bootstrap/channel.rs
AgeCommit message (Collapse)AuthorLines
2023-10-17move bootstrap utils into bootstrap/src/utils moduleonur-ozkan-160/+0
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-04-17Spelling src/bootstrapJosh Soref-1/+1
* although * correct * granular * libunwind * repository * section Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-10Fix remaining typosDaniPopes-1/+1
2023-04-08s/ignore_git/omit_git_hashGimbles-3/+3
2022-11-13Make all download functions need only Config, not BuilderJoshua Nelson-0/+3
This also adds a new `mod download` instead of scattering the download code across `config.rs` and `native.rs`.
2022-10-02re-add git-commit-hash file to tarballsdawnofmidnight-0/+5
rust-lang/rust#100557 removed the `git-commit-hash` file and replaced it with `git-commit-info`. However, build-manifest relies on the `git-commit-hash` file being present, so this adds it back.
2022-10-01fix: use git-commit-info for version informationdawnofmidnight-8/+55
This PR adds support for fetching version information from the `git-commit-info` file when building the compiler from a source tarball.
2022-03-05Merge build_helper into utilbjorn3-1/+1
2022-03-05Remove build_helperbjorn3-2/+1
The majority of the code is only used by either rustbuild or rustc_llvm's build script. Rust_build is compiled once for rustbuild and once for every stage. This means that the majority of the code in this crate is needlessly compiled multiple times. By moving only the code actually used by the respective crates to rustbuild and rustc_llvm's build script, this needless duplicate compilation is avoided.
2021-07-25Don't treat git repos as non-existent when `ignore_git` is setJoshua Nelson-17/+36
The new submodule handling depends on `is_git()` to be accurate to decide whether it should handle submodules at all or not. Unfortunately, `is_git()` treated "this directory does not have a git repository" and "this repository should not be used for SHA/version/commit date info" the same. This changes it to distinguish the two. To clarify: ignore_get is set by default whenever channel == "dev", which it is by default whenever you're compiling locally. So basically everyone would hit this, not just people who had explicitly configured ignore_git. Here's an example of an error this fixes: ``` $ x build Updating only changed submodules Submodules updated in 0.01 seconds Finished dev [unoptimized + debuginfo] target(s) in 0.17s warning: x.py has made several changes recently you may want to look at help: consider looking at the changes in `src/bootstrap/CHANGELOG.md` note: to silence this warning, add `changelog-seen = 2` at the top of `config.toml` Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) Finished release [optimized] target(s) in 0.16s Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu) Building LLVM for x86_64-unknown-linux-gnu detected home dir change, cleaning out entire build directory running: "cmake" "/home/joshua/rustc3/src/llvm-project/llvm" "-G" "Ninja" "-DLLVM_ENABLE_ASSERTIONS=OFF" "-DLLVM_TARGETS_TO_BUILD=AArch64;ARM;BPF;Hexagon;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86" "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR" "-DLLVM_INCLUDE_EXAMPLES=OFF" "-DLLVM_INCLUDE_DOCS=OFF" "-DLLVM_INCLUDE_BENCHMARKS=OFF" "-DLLVM_ENABLE_TERMINFO=OFF" "-DLLVM_ENABLE_LIBEDIT=OFF" "-DLLVM_ENABLE_BINDINGS=OFF" "-DLLVM_ENABLE_Z3_SOLVER=OFF" "-DLLVM_PARALLEL_COMPILE_JOBS=48" "-DLLVM_TARGET_ARCH=x86_64" "-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu" "-DLLVM_ENABLE_ZLIB=ON" "-DLLVM_ENABLE_LIBXML2=OFF" "-DLLVM_VERSION_SUFFIX=-rust-dev" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=gcc" "-DCMAKE_CXX_COMPILER=g++" "-DCMAKE_ASM_COMPILER=gcc" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_INSTALL_PREFIX=/home/joshua/rustc3/build/x86_64-unknown-linux-gnu/llvm" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_BUILD_TYPE=Release" CMake Error: The source directory "/home/joshua/rustc3/src/llvm-project/llvm" does not exist. Specify --help for usage, or press the help button on the CMake GUI. thread 'main' panicked at ' command did not execute successfully, got: exit status: 1 build script failed, must exit now', /home/joshua/.local/lib/cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.44/src/lib.rs:885:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace finished in 0.783 seconds Build completed unsuccessfully in 0:00:01 ```
2020-12-31bootstrap: clippy fixesMatthias Krüger-2/+2
addresses: clippy::or_fun_call clippy::single_char_add_str clippy::comparison_to_empty clippy::or_fun_call
2020-09-18bootstrap: move the version number to a plaintext filePietro Albini-3/+0
The Rust version number is currently embedded in bootstrap's source code, which makes it hard to update it automatically or access it outside of ./x.py (as you'd have to parse the source code). This commit moves the version number to a standalone plaintext file, which makes accessing or updating it trivial.
2020-08-26bump version to 1.48Pietro Albini-1/+1
2020-07-16Bump to 1.47Mark Rousskov-1/+1
2020-06-03Bump to 1.46Mark Rousskov-1/+1
2020-04-25Bump bootstrap compilerMark Rousskov-1/+1
2020-03-15Bump the bootstrap compilerJonas Schievink-1/+1
2020-01-31Bump rustfmt and stage0Mark Rousskov-1/+1
2019-12-22Format the worldMark Rousskov-17/+14
2019-12-18Bump stage0Mark Rousskov-1/+1
2019-11-12Bump version to 1.41Mark Rousskov-1/+1
2019-09-25Switch version to 1.40Mark Rousskov-1/+1
2019-08-13Bump to 1.39Mark Rousskov-1/+1
2019-07-04Switch master to 1.38Mark Rousskov-1/+1
2019-05-23bump nightly to 1.37.0Pietro Albini-1/+1
2019-04-17bump bootstrap; nightly => 1.36.Mazdak Farrokhzad-1/+1
2019-03-30Don't ignore git for LLVM infoJosh Stone-10/+9
2019-03-02Bootstrap compiler update for 1.35 releaseMark Rousskov-1/+1
2019-01-26Bump bootstrap compiler to 1.33 betaMark Rousskov-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-15Auto merge of #56600 - ljedrz:fix_edition, r=Mark-Simulacrumbors-2/+2
bootstrap: fix edition A byproduct of work on https://github.com/rust-lang/rust/pull/56595; done with `cargo fix --edition`.
2018-12-12Bump to 1.33.0Alex Crichton-1/+1
* Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations Actually updating the version number is blocked on updating Cargo
2018-12-10bootstrap: fix editionljedrz-2/+2
2018-10-31Bump nightly to 1.32.0Alex Crichton-1/+1
* Also update the bootstrap compiler * Update cargo to 1.32.0 * Clean out stage0 annotations
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-1/+1
2018-08-01Switch to bootstrapping from 1.29 betaMark Rousskov-1/+1
2018-06-30Bootstrap from 1.28.0-beta.3Mark Simulacrum-1/+1
2018-05-17Switch to 1.26 bootstrap compilerMark Simulacrum-1/+1
2018-04-02Bump to 1.27.0Alex Crichton-1/+1
Also update some `Cargo.lock` dependencies, finishing up some final steps of our [release process]! This doesn't update the bootstrap compiler just yet but that will come in a follow-up PR. [release process]: https://forge.rust-lang.org/release-process.html
2018-02-20Bootstrap from the 1.25 betaMark Simulacrum-1/+1
2018-01-19Automaticaly calculate beta prerelease numbersAlex Crichton-5/+0
This is a forward-port of: * 9426dda83d7a928d6ced377345e14b84b0f11c21 * cbfb9858951da7aee22d82178405306fca9decb1 from the beta branch which is used to automatically calculate the beta number based on the number of merges to the beta branch so far.
2018-01-04Bump to 1.25.0Alex Crichton-1/+1
* Bump the release version to 1.25 * Bump the bootstrap compiler to the recent beta * Allow using unstable rustdoc features on beta - this fix has been applied to the beta branch but needed to go to the master branch as well.
2017-11-26Increment Nightly version to 1.24.0Simon Sapin-1/+1
The beta channel is now at 1.23.0-beta.1.
2017-10-26Bump to 1.23 and update bootstrapAlex Crichton-1/+1
This commit updates the bootstrap compiler, bumps the version to 1.23, updates Cargo, updates books, and updates crates.io dependencies
2017-08-31Bump to 1.22.0Alex Crichton-1/+1
2017-08-13Add ability to ignore git when building rust.Mark Simulacrum-2/+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-07-25Bump master to 1.21.0Alex Crichton-1/+1
This commit bumps the master branch's version to 1.21.0 and also updates the bootstrap compiler from the freshly minted beta release.
2017-07-04Remove src_is_git, instead call method on rust_info directly.Mark Simulacrum-0/+4
2017-07-04Clippy lintsMark Simulacrum-1/+1
2017-07-04Remove 'static lifetimes from channels.Mark Simulacrum-2/+2