Also sort crt-static in --print target-features output by Enselic · Pull Request #126424 · rust-lang/rust (original) (raw)

I didn't find crt-static at first (for x86_64-unknown-linux-gnu), because it was put at the bottom of the large and otherwise sorted list.

Fully sort the list before we print it.

Note that llvm_target_features starts out and remains sorted and does not need to be sorted an extra time.

On my machine the diff is just:

$ diff -u /tmp/before2.txt /tmp/after2.txt --- /tmp/before2.txt 2024-06-13 20:40:27.091636592 +0200 +++ /tmp/after2.txt 2024-06-13 20:39:54.584894891 +0200 @@ -20,6 +20,7 @@ bmi1 - Support BMI instructions. bmi2 - Support BMI2 instructions. cmpxchg16b - 64-bit with cmpxchg16b (this is true for most x86-64 chips, but not the first AMD chips).

Code-generation features supported by LLVM for this target: 16bit-mode - 16-bit mode (i8086).

I couldn't find a ui test that tested this output. Let's see if CI finds a regression tests.