1
- //! Compilation of native dependencies like LLVM .
1
+ //! Compilation of native dependencies like GCC .
2
2
//!
3
- //! Native projects like LLVM unfortunately aren't suited just yet for
3
+ //! Native projects like GCC unfortunately aren't suited just yet for
4
4
//! compilation in build scripts that Cargo has. This is because the
5
5
//! 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).
7
7
//!
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
9
9
//! ensure that they're always in place if needed.
10
10
11
11
use std:: fs;
@@ -43,7 +43,7 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
43
43
// FIXME (GuillaumeGomez): To be done once gccjit has been built in the CI.
44
44
// builder.config.maybe_download_ci_gcc();
45
45
46
- // Initialize the llvm submodule if not initialized already.
46
+ // Initialize the gcc submodule if not initialized already.
47
47
builder. update_submodule ( & Path :: new ( "src" ) . join ( "gcc" ) ) ;
48
48
49
49
let root = "src/gcc" ;
@@ -110,7 +110,7 @@ pub fn prebuilt_gcc_config(builder: &Builder<'_>, target: TargetSelection) -> Gc
110
110
// };
111
111
112
112
// 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 ");
114
114
// eprintln!("HELP: maybe your repository history is too shallow?");
115
115
// eprintln!("HELP: consider disabling `download-ci-gcc`");
116
116
// 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
126
126
// /// and then verifies if the current HEAD matches the detected GCC SHA head,
127
127
// /// in which case GCC is indicated as not available.
128
128
// 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
132
129
// let supported_platforms = [
133
130
// // tier 1
134
131
// ("x86_64-unknown-linux-gnu", true),
0 commit comments