From 13068b8e504122801654b32b528bea2643ba7f8b Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 12 Dec 2019 16:26:02 -0500 Subject: [PATCH] [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 --- projects/llvm_libcxx/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/llvm_libcxx/build.sh b/projects/llvm_libcxx/build.sh index e16a64ddc..56130d3fb 100755 --- a/projects/llvm_libcxx/build.sh +++ b/projects/llvm_libcxx/build.sh @@ -31,6 +31,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { } EOF $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 done