Correct the LLVM target of aarch64-unknown-uefi#134156
Correct the LLVM target of aarch64-unknown-uefi#134156tgross35 wants to merge 1 commit intorust-lang:masterfrom
aarch64-unknown-uefi#134156Conversation
As noticed in [1], the LLVM target string for aarch64 UEFI is not correct. Fix it here. Link: rust-lang#132975 (comment) [1]
|
r? @chenyukang rustbot has assigned @chenyukang. Use |
|
These commits modify compiler targets. |
|
I just looked at the LLVM source history for the UEFI triple subcomponent - it was added in https://reviews.llvm.org/D131594 (llvm/llvm-project@30198bd). I just looked where the UEFI triple is used and it appears it's only being used for x86. It looks like it does not work for aarch64: But it does work for x86_64, so we could update that target info: |
|
CC: @Prabhuk was the UEFI support in LLVM supposed to only support x86 or is AArch64 support planned eventually? |
|
I just found #132570 which does the same thing, plus a couple others. I'll close this one, @arichardson mind taking a look at that PR? |
Yes. Currently only x86_64 is being worked on. The backend patch for it still needs to land which I am hoping will happen by end of the month. AArch64 is the next target I want to work on followed by 32 bit targets. I think the Driver also needs some fixes to provide an error if unsupported UEFI triple is passed. |
As noticed in #132975 (comment), the LLVM target string for aarch64 UEFI is not correct. Fix it here.