mirror of https://github.com/google/oss-fuzz.git
[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:
parent
c8b58c19f5
commit
13068b8e50
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue