[PATCH] D128109: [Driver] Pass -X to ld for riscv64-openbsd
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 17 17:03:45 PDT 2022
MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.
Please add a test.
================
Comment at: clang/lib/Driver/ToolChains/OpenBSD.cpp:159
+ if (ToolChain.getArch() == llvm::Triple::riscv64)
+ CmdArgs.push_back("-X");
----------------
isRISCV
If OpenBSD gets riscv32, it'd need -X, too.
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