[PATCH] D37631: [libFuzzer] Support using libc++
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 12:29:35 PST 2018
phosek added inline comments.
================
Comment at: test/fuzzer/lit.cfg:59
+ elif config.clang and config.stdlib == 'static-libc++':
+ link_cmd = '-stdlib=libc++ -lc++abi -static-libstdc++'
+ else:
----------------
morehouse wrote:
> What does `-static-libstdc++` do here? Does it mix libstdc++ with libc++?
`static-libstdc++` works with both libc++ and libstdc++ (confusingly), the choice of C++ library is controlled by `-stdlib=` flag. This branch is used to check that libFuzzer can be used with statically linked C++ library (i.e. to ensure that the symbols from the internalized C++ library are properly hidden and localized to don't cause collision).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D37631
More information about the llvm-commits
mailing list