[PATCH] D84947: Add libFuzzer shared object build output

Ian Eldred Pudney via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 13:38:37 PDT 2020


IanPudney added inline comments.


================
Comment at: compiler-rt/lib/fuzzer/CMakeLists.txt:195
+set(LIBFUZZER_SHARED_LINK_LIBS ${SANITIZER_COMMON_LINK_LIBS})
+if (DARWIN)
+  list(APPEND LIBFUZZER_SHARED_LINK_LIBS "-lc++")
----------------
lebedev.ri wrote:
> This is too fragile, basically duplicates defaults from `clang/lib/Driver/ToolChains`
> Is there no way to make compiler do the right thing?
I don't suppose you have any suggestions? I don't even know why libstdc++ isn't being linked in automatically.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84947/new/

https://reviews.llvm.org/D84947



More information about the llvm-commits mailing list