[PATCH] D37631: [libFuzzer] Support using libc++

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 15:02:48 PST 2017


phosek updated this revision to Diff 126850.
phosek added a comment.

So I finally ended up with something that works reliably with both libstdc++ and libc++. I plan on doing a bit more cleanup, but a question is what to do on Darwin and Windows. I'm relying on partial linking. That appears to be supported by ld64, but there doesn't seem be the `--whole-archive` option that we need as well (unless we upgrade CMake to 3.9). On Windows, I don't know if partial linking is supported at all. However, I also don't know if we even need this on Darwin and Windows rather than simply relying on the host C++ library?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D37631

Files:
  cmake/Modules/AddCompilerRT.cmake
  lib/fuzzer/CMakeLists.txt
  lib/fuzzer/tests/CMakeLists.txt
  test/fuzzer/CMakeLists.txt
  test/fuzzer/lit.cfg
  test/fuzzer/lit.site.cfg.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37631.126850.patch
Type: text/x-patch
Size: 9921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171213/ef4d5e0a/attachment.bin>


More information about the llvm-commits mailing list