Skip to content

Commit 5b4ecf2

Browse files
Update code comments to mention GCC and not LLVM
1 parent 193eaa4 commit 5b4ecf2

File tree

1 file changed

+6
-9
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+6
-9
lines changed

src/bootstrap/src/core/build_steps/gcc.rs

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//! Compilation of native dependencies like LLVM.
1+
//! Compilation of native dependencies like GCC.
22
//!
3-
//! Native projects like LLVM unfortunately aren't suited just yet for
3+
//! Native projects like GCC unfortunately aren't suited just yet for
44
//! compilation in build scripts that Cargo has. This is because the
55
//! compilation takes a *very* long time but also because we don't want to
6-
//! compile LLVM 3 times as part of a normal bootstrap (we want it cached).
6+
//! compile GCC 3 times as part of a normal bootstrap (we want it cached).
77
//!
8-
//! LLVM and compiler-rt are essentially just wired up to everything else to
8+
//! GCC and compiler-rt are essentially just wired up to everything else to
99
//! ensure that they're always in place if needed.
1010
1111
use std::fs;
@@ -43,7 +43,7 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
4343
// FIXME (GuillaumeGomez): To be done once gccjit has been built in the CI.
4444
// builder.config.maybe_download_ci_gcc();
4545

46-
// Initialize the llvm submodule if not initialized already.
46+
// Initialize the gcc submodule if not initialized already.
4747
builder.update_submodule(&Path::new("src").join("gcc"));
4848

4949
let root = "src/gcc";
@@ -110,7 +110,7 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
110110
// };
111111

112112
// if gcc_sha.is_empty() {
113-
// eprintln!("error: could not find commit hash for downloading LLVM");
113+
// eprintln!("error: could not find commit hash for downloading GCC");
114114
// eprintln!("HELP: maybe your repository history is too shallow?");
115115
// eprintln!("HELP: consider disabling `download-ci-gcc`");
116116
// eprintln!("HELP: or fetch enough history to include one upstream commit");
@@ -126,9 +126,6 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
126126
// /// and then verifies if the current HEAD matches the detected GCC SHA head,
127127
// /// in which case GCC is indicated as not available.
128128
// pub(crate) fn is_ci_gcc_available(config: &Config, asserts: bool) -> bool {
129-
// // This is currently all tier 1 targets and tier 2 targets with host tools
130-
// // (since others may not have CI artifacts)
131-
// // https://doc.rust-lang.org/rustc/platform-support.html#tier-1
132129
// let supported_platforms = [
133130
// // tier 1
134131
// ("x86_64-unknown-linux-gnu", true),

0 commit comments

Comments
 (0)