[PATCH] D43818: Better OpenBSD frontend support

Kamil Rytarowski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 08:23:57 PST 2018


krytarowski 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");
----------------
It's a matter of taste, but I would try to omit nested `if`.


Repository:
  rC Clang

https://reviews.llvm.org/D43818





More information about the cfe-commits mailing list