[libc++] Correctly remove the system stdlib includes using -nostdinc++ (#3117)

This change was tested and verified to work by running:

1. git clone oss-fuzz
2. ./infra/helper.py build_image llvm_libcxx
3. ./infra/helper.py build_fuzzers llvm_libcxx
This commit is contained in:
Eric 2019-12-12 16:26:02 -05:00 committed by Kostya Serebryany
parent c8b58c19f5
commit 13068b8e50
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
} }
EOF EOF
$CXX $CXXFLAGS -std=c++11 ${f}_fuzzer.cc ./libcxx/fuzzing/fuzzing.cpp \ $CXX $CXXFLAGS -std=c++11 ${f}_fuzzer.cc ./libcxx/fuzzing/fuzzing.cpp \
-cxx-isystem ./libcxx/include -iquote ./libcxx \ -nostdinc++ -cxx-isystem ./libcxx/include -iquote ./libcxx \
-o $OUT/$f $LIB_FUZZING_ENGINE -o $OUT/$f $LIB_FUZZING_ENGINE
done done