This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1264,6 +1264,11 @@ def bootstrap(args):
1264
1264
config_toml = ""
1265
1265
1266
1266
profile = RustBuild .get_toml_static (config_toml , "profile" )
1267
+ is_non_git_source = not os .path .exists (os .path .join (rust_root , ".git" ))
1268
+
1269
+ if profile is None and is_non_git_source :
1270
+ profile = "dist"
1271
+
1267
1272
if profile is not None :
1268
1273
# Allows creating alias for profile names, allowing
1269
1274
# profiles to be renamed while maintaining back compatibility
Original file line number Diff line number Diff line change @@ -2914,10 +2914,8 @@ impl Config {
2914
2914
let if_unchanged = || {
2915
2915
if self . rust_info . is_from_tarball ( ) {
2916
2916
// Git is needed for running "if-unchanged" logic.
2917
- println ! (
2918
- "WARNING: 'if-unchanged' has no effect on tarball sources; ignoring `download-ci-llvm`."
2919
- ) ;
2920
- return false ;
2917
+ println ! ( "ERROR: 'if-unchanged' is only compatible with Git managed sources." ) ;
2918
+ crate :: exit!( 1 ) ;
2921
2919
}
2922
2920
2923
2921
// Fetching the LLVM submodule is unnecessary for self-tests.
You can’t perform that action at this time.
0 commit comments