[PATCH] D128109: [Driver] Pass -X to ld for riscv64-openbsd

Brad Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 17 17:07:03 PDT 2022


brad added a comment.

I will add a test.



================
Comment at: clang/lib/Driver/ToolChains/OpenBSD.cpp:159
 
+  if (ToolChain.getArch() == llvm::Triple::riscv64)
+    CmdArgs.push_back("-X");
----------------
MaskRay wrote:
> isRISCV
> 
> If OpenBSD gets riscv32, it'd need -X, too.
There is no interest in further 32-bit archs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128109/new/

https://reviews.llvm.org/D128109



More information about the cfe-commits mailing list