[clang] [RISCV] Add -march=unset to cancel and ignore a previous -march. (PR #148321)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 12 14:54:38 PDT 2025


================
@@ -403,6 +403,11 @@
 // MCPU-MARCH: "-nostdsysteminc" "-target-cpu" "sifive-e31" "-target-feature" "+m" "-target-feature" "+c"
 // MCPU-MARCH: "-target-abi" "ilp32"
 
+// march=unset erases previous march
----------------
MaskRay wrote:

`/// -march=unset erases previous -march`.

Always include `-` when referring to a `-` option.

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


More information about the cfe-commits mailing list