[llvm] b94f0a9 - [llvm][clang] Correct example in -mcpu-help text
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 02:37:47 PDT 2023
Author: David Spickett
Date: 2023-04-11T09:36:57Z
New Revision: b94f0a9e82ad89125830e24d91a735054c366911
URL: https://github.com/llvm/llvm-project/commit/b94f0a9e82ad89125830e24d91a735054c366911
DIFF: https://github.com/llvm/llvm-project/commit/b94f0a9e82ad89125830e24d91a735054c366911.diff
LOG: [llvm][clang] Correct example in -mcpu-help text
This used to say:
For example, clang --target=aarch64-unknown-linux-gui -mcpu=cortex-a35
Which works but I think it was meant to be `-gnu` not `-gui`. From my
AArch64 Linux build:
```
$ ./bin/clang --version
clang version 17.0.0 <...>
Target: aarch64-unknown-linux-gnu
```
Originally added in af857b93df36a983a27a82455c0dea39f53da5b1.
Added:
Modified:
llvm/lib/MC/MCSubtargetInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCSubtargetInfo.cpp b/llvm/lib/MC/MCSubtargetInfo.cpp
index fc9826cf2b2ea..dd7c57a77f9a5 100644
--- a/llvm/lib/MC/MCSubtargetInfo.cpp
+++ b/llvm/lib/MC/MCSubtargetInfo.cpp
@@ -142,7 +142,7 @@ static void cpuHelp(ArrayRef<SubtargetSubTypeKV> CPUTable) {
errs() << '\n';
errs() << "Use -mcpu or -mtune to specify the target's processor.\n"
- "For example, clang --target=aarch64-unknown-linux-gui "
+ "For example, clang --target=aarch64-unknown-linux-gnu "
"-mcpu=cortex-a35\n";
PrintOnce = true;
More information about the llvm-commits
mailing list