File tree 1 file changed +6
-0
lines changed
src/bootstrap/src/core/build_steps
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ pub enum GccBuildStatus {
93
93
/// Tries to download GCC from CI if it is enabled and GCC artifacts
94
94
/// are available for the given target.
95
95
/// Returns a path to the libgccjit.so file.
96
+ #[ cfg( not( test) ) ]
96
97
fn try_download_gcc ( builder : & Builder < ' _ > , target : TargetSelection ) -> Option < PathBuf > {
97
98
// Try to download GCC from CI if configured and available
98
99
if !matches ! ( builder. config. gcc_ci_mode, GccCiMode :: DownloadFromCi ) {
@@ -114,6 +115,11 @@ fn try_download_gcc(builder: &Builder<'_>, target: TargetSelection) -> Option<Pa
114
115
Some ( root. join ( "libgccjit.so" ) )
115
116
}
116
117
118
+ #[ cfg( test) ]
119
+ fn try_download_gcc ( _builder : & Builder < ' _ > , _target : TargetSelection ) -> Option < PathBuf > {
120
+ None
121
+ }
122
+
117
123
/// This returns information about whether GCC should be built or if it's already built.
118
124
/// It transparently handles downloading GCC from CI if needed.
119
125
///
You can’t perform that action at this time.
0 commit comments