about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-07-22 20:16:53 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-09-06 16:01:46 +0200
commitf5abc4204ffc1e4b82f06714f2d9a82e1b0c264e (patch)
tree9f149bfc77620bcf9b05432ad880bf61e35560df /src/bootstrap
parentc53c3974253f78b4989378af53ff1ee6bdeccccc (diff)
downloadrust-f5abc4204ffc1e4b82f06714f2d9a82e1b0c264e.tar.gz
rust-f5abc4204ffc1e4b82f06714f2d9a82e1b0c264e.zip
Update code comments to mention GCC and not LLVM
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/gcc.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/bootstrap/src/core/build_steps/gcc.rs b/src/bootstrap/src/core/build_steps/gcc.rs
index 01a7eee60a4..36896abe188 100644
--- a/src/bootstrap/src/core/build_steps/gcc.rs
+++ b/src/bootstrap/src/core/build_steps/gcc.rs
@@ -1,11 +1,11 @@
-//! Compilation of native dependencies like LLVM.
+//! Compilation of native dependencies like GCC.
 //!
-//! Native projects like LLVM unfortunately aren't suited just yet for
+//! Native projects like GCC unfortunately aren't suited just yet for
 //! compilation in build scripts that Cargo has. This is because the
 //! compilation takes a *very* long time but also because we don't want to
-//! compile LLVM 3 times as part of a normal bootstrap (we want it cached).
+//! compile GCC 3 times as part of a normal bootstrap (we want it cached).
 //!
-//! LLVM and compiler-rt are essentially just wired up to everything else to
+//! GCC and compiler-rt are essentially just wired up to everything else to
 //! ensure that they're always in place if needed.
 
 use std::fs;
@@ -43,7 +43,7 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
     // FIXME (GuillaumeGomez): To be done once gccjit has been built in the CI.
     // builder.config.maybe_download_ci_gcc();
 
-    // Initialize the llvm submodule if not initialized already.
+    // Initialize the gcc submodule if not initialized already.
     builder.update_submodule(&Path::new("src").join("gcc"));
 
     let root = "src/gcc";
@@ -110,7 +110,7 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
 //     };
 
 //     if gcc_sha.is_empty() {
-//         eprintln!("error: could not find commit hash for downloading LLVM");
+//         eprintln!("error: could not find commit hash for downloading GCC");
 //         eprintln!("HELP: maybe your repository history is too shallow?");
 //         eprintln!("HELP: consider disabling `download-ci-gcc`");
 //         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
 // /// and then verifies if the current HEAD matches the detected GCC SHA head,
 // /// in which case GCC is indicated as not available.
 // pub(crate) fn is_ci_gcc_available(config: &Config, asserts: bool) -> bool {
-//     // This is currently all tier 1 targets and tier 2 targets with host tools
-//     // (since others may not have CI artifacts)
-//     // https://doc.rust-lang.org/rustc/platform-support.html#tier-1
 //     let supported_platforms = [
 //         // tier 1
 //         ("x86_64-unknown-linux-gnu", true),