[PATCH] D43818: Better OpenBSD frontend support
David CARLIER via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 27 08:39:30 PST 2018
devnexen added inline comments.
================
Comment at: lib/Driver/ToolChains/CommonArgs.cpp:545
CmdArgs.push_back("-lpthread");
- CmdArgs.push_back("-lrt");
+ if (TC.getTriple().getOS() != llvm::Triple::OpenBSD)
+ CmdArgs.push_back("-lrt");
----------------
krytarowski wrote:
> It's a matter of taste, but I would try to omit nested `if`.
I just went to the "lesser changes" route as the case here is pretty simple.
Repository:
rC Clang
https://reviews.llvm.org/D43818
More information about the cfe-commits
mailing list