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

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 10:21:31 PST 2017


morehouse added a comment.

LGTM for recent clang.  Not sure how long ago `-stdlib=libc++` support was added.  If it was long enough ago, maybe the lit config is OK?  Otherwise might need to check clang version or something.



================
Comment at: test/fuzzer/lit.cfg:57
+  else:
+    link_cmd = '-lc++' if 'darwin' in config.target_triple else '-lstdc++'
   std_cmd = '-std=c++11' if is_cpp else ''
----------------
What is the difference between `-stdlib=libc++` and `-lc++`?  Why does the original code use `-lc++` instead?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D37631





More information about the llvm-commits mailing list