From c8b58c19f5a4227749d27429a863e2fd462ff0cb Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 12 Dec 2019 16:06:13 -0500 Subject: [PATCH] Really fix the libc++ build's include paths. (#3116) The -I flag I previously removed was used to drag in the "fuzzing/fuzzing.h" header. --- projects/llvm_libcxx/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/llvm_libcxx/build.sh b/projects/llvm_libcxx/build.sh index 45dd77ae9..e16a64ddc 100755 --- a/projects/llvm_libcxx/build.sh +++ b/projects/llvm_libcxx/build.sh @@ -30,5 +30,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { assert(result == 0); return 0; } EOF - $CXX $CXXFLAGS -std=c++11 ${f}_fuzzer.cc ./libcxx/fuzzing/fuzzing.cpp -cxx-isystem ./libcxx/include -o $OUT/$f $LIB_FUZZING_ENGINE + $CXX $CXXFLAGS -std=c++11 ${f}_fuzzer.cc ./libcxx/fuzzing/fuzzing.cpp \ + -cxx-isystem ./libcxx/include -iquote ./libcxx \ + -o $OUT/$f $LIB_FUZZING_ENGINE done