Skip to content

Commit 52a16bb

Browse files
committed
print_target_features: Sort output
I didn't find `crt-static` at first, because it was put at the bottom of a large and otherwise sorted list. Sort the lists before we print them.
1 parent f158600 commit 52a16bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_llvm/src/llvm_util.rs

+3
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@ fn print_target_features(out: &mut dyn PrintBackendInfo, sess: &Session, tm: &ll
398398
"crt-static",
399399
"Enables C Run-time Libraries to be statically linked",
400400
)]);
401+
rustc_target_features.sort();
402+
401403
llvm_target_features.retain(|(f, _d)| !known_llvm_target_features.contains(f));
404+
llvm_target_features.sort();
402405

403406
let max_feature_len = llvm_target_features
404407
.iter()

0 commit comments

Comments
 (0)