[llvm] [TargetParser] Normalize "aarch64-amazon-linux" to "aarch64-amazon-linux-gnu" (PR #140070)

Paul Osmialowski via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 11:20:46 PDT 2025


pawosm-arm wrote:

> 
> Sorry for the late response. I've now looked at other changes you've made.
> 
> ```
> // libcxx/test/std/re/re.alg/re.alg.search/awk.locale.pass.cpp
> // XFAIL: target={{.*}}-amazon-linux{{.*}}
> ```
> 
> Why do we want to use aarch64-amazon-linux instead of aarch64-unknown-linux-gnu? If the only issue is that clang cannot pick up `lib/gcc/aarch64-amazon-linux`, you can specify a config file for `--gcc-triple=aarch64-amazon-linux`. In LLVM, we can just use `aarch64-unknown-linux-gnu` and we don't need to update TargetParser/config.guess at all.

I can think of many reasons why it is not the best idea. But let's have an example. Some users need to use `--no-default-config` option. This may be considered an advanced user scenario and if someone is in a need of using such flag, they usually know what they are doing and know about lot of relevant circumstances, e.g. what system they are working with, but then again, it is only an assumption and does not need to be valid - even the most advanced LLVM users may not notice that if they work on Amazon Linux and the CPU is not x86_64, then they need to specify an extra --gcc-triple flag that they might never needed to use on any other system they did the same work in the past. This is very punishing, hence if we demand it for one OS/CPU combination, we should do it for all.

https://github.com/llvm/llvm-project/pull/140070


More information about the llvm-commits mailing list