2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1268,6 +1268,11 @@ def bootstrap(args):
1268
1268
config_toml = ""
1269
1269
1270
1270
profile = RustBuild .get_toml_static (config_toml , "profile" )
1271
+ is_non_git_source = not os .path .exists (os .path .join (rust_root , ".git" ))
1272
+
1273
+ if profile is None and is_non_git_source :
1274
+ profile = "dist"
1275
+
1271
1276
if profile is not None :
1272
1277
# Allows creating alias for profile names, allowing
1273
1278
# profiles to be renamed while maintaining back compatibility
Original file line number Diff line number Diff line change @@ -2926,10 +2926,8 @@ impl Config {
2926
2926
let if_unchanged = || {
2927
2927
if self . rust_info . is_from_tarball ( ) {
2928
2928
// Git is needed for running "if-unchanged" logic.
2929
- println ! (
2930
- "WARNING: 'if-unchanged' has no effect on tarball sources; ignoring `download-ci-llvm`."
2931
- ) ;
2932
- return false ;
2929
+ println ! ( "ERROR: 'if-unchanged' is only compatible with Git managed sources." ) ;
2930
+ crate :: exit!( 1 ) ;
2933
2931
}
2934
2932
2935
2933
// Fetching the LLVM submodule is unnecessary for self-tests.
0 commit comments