Noticing https://reviews.llvm.org/D127826, add support for OpenBSD which uses lld on riscv64.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Please add a test.
clang/lib/Driver/ToolChains/OpenBSD.cpp | ||
---|---|---|
159 | isRISCV If OpenBSD gets riscv32, it'd need -X, too. |
Comment Actions
I will add a test.
clang/lib/Driver/ToolChains/OpenBSD.cpp | ||
---|---|---|
159 | There is no interest in further 32-bit archs. |
clang/test/Driver/openbsd.c | ||
---|---|---|
133 | It's useful to check other values like the -m emulation and the dynamic linker. |
clang/test/Driver/openbsd.c | ||
---|---|---|
133 | The dynamic linker flags are tested further up in openbsd.c. The driver currently does not pass back the emulation flag. |
isRISCV
If OpenBSD gets riscv32, it'd need -X, too.