[PATCH] D45662: Fuzzer, add libcxx for OpenBSD

Dean Michael Berris via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 15 17:42:33 PDT 2018


dberris added inline comments.


================
Comment at: lib/Driver/ToolChains/CommonArgs.cpp:678-679
       TC.AddCXXStdlibLibArgs(Args, CmdArgs);
+      if (TC.getTriple().getOS() == llvm::Triple::OpenBSD)
+        CmdArgs.push_back(Args.hasArg(options::OPT_pg) ? "-lc++_p" : "-lc++");
+    }
----------------
Maybe this should be in the `TC.AddCXXStdlibLibArgs(...)` function instead?


Repository:
  rC Clang

https://reviews.llvm.org/D45662





More information about the cfe-commits mailing list