From 1d53b55e18670df06802c4b5df187ef014e8fe7c Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 6 Nov 2020 10:06:44 -0500 Subject: [PATCH] [libc++] Try fixing the oss-fuzz build See https://github.com/google/oss-fuzz/issues/4586. --- libcxx/utils/ci/oss-fuzz.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcxx/utils/ci/oss-fuzz.sh b/libcxx/utils/ci/oss-fuzz.sh index 8a9421a..d8a1e5e 100755 --- a/libcxx/utils/ci/oss-fuzz.sh +++ b/libcxx/utils/ci/oss-fuzz.sh @@ -9,11 +9,13 @@ if [[ ${SANITIZER} = *undefined* ]]; then fi for test in libcxx/test/libcxx/fuzzing/*.pass.cpp; do + exe="$(basename ${test})" + exe="${exe%.pass.cpp}" ${CXX} ${CXXFLAGS} \ -std=c++14 \ -DLIBCPP_OSS_FUZZ \ -nostdinc++ -cxx-isystem libcxx/include \ - -o "${OUT}/$(basename ${test})" \ + -o "${OUT}/${exe}" \ ${test} \ ${LIB_FUZZING_ENGINE} done -- 2.7.4