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

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 19:08:24 PDT 2017


phosek added a comment.

In https://reviews.llvm.org/D37631#874773, @vitalybuka wrote:

> Can we just rely on LLVM_ENABLE_LIBCXX instead of introducing COMPILER_RT_ENABLE_LIBCXX?


Those fulfill different purpose, `LLVM_ENABLE_LIBCXX` enables building LLVM itself against libc++ (i.e. it passes `-stdlib=libc++` to the host compiler), but it doesn't necessarily mean that the libc++ source is available. I think we should just rely on `COMPILER_RT_HAS_LIBCXX_SOURCES`, i.e. use libc++ anytime its sources are available (and we're building with Clang).


Repository:
  rL LLVM

https://reviews.llvm.org/D37631





More information about the llvm-commits mailing list