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 +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1145,7 +1145,12 @@ def bootstrap(args):
1145
1145
else :
1146
1146
config_toml = ''
1147
1147
1148
- profile = RustBuild .get_toml_static (config_toml , 'profile' )
1148
+ profile = RustBuild .get_toml_static (config_toml , "profile" )
1149
+ is_non_git_source = not os .path .exists (os .path .join (rust_root , ".git" ))
1150
+
1151
+ if profile is None and is_non_git_source :
1152
+ profile = "dist"
1153
+
1149
1154
if profile is not None :
1150
1155
# Allows creating alias for profile names, allowing
1151
1156
# profiles to be renamed while maintaining back compatibility
Original file line number Diff line number Diff line change @@ -2858,10 +2858,8 @@ impl Config {
2858
2858
let if_unchanged = || {
2859
2859
if self . rust_info . is_from_tarball ( ) {
2860
2860
// Git is needed for running "if-unchanged" logic.
2861
- println ! (
2862
- "WARNING: 'if-unchanged' has no effect on tarball sources; ignoring `download-ci-llvm`."
2863
- ) ;
2864
- return false ;
2861
+ println ! ( "ERROR: 'if-unchanged' is only compatible with Git managed sources." ) ;
2862
+ crate :: exit!( 1 ) ;
2865
2863
}
2866
2864
2867
2865
// Fetching the LLVM submodule is unnecessary for self-tests.
You can’t perform that action at this time.
0 commit comments