[libc++] Try fixing the oss-fuzz build
authorLouis Dionne <ldionne@apple.com>
Fri, 6 Nov 2020 15:06:44 +0000 (10:06 -0500)
committerLouis Dionne <ldionne@apple.com>
Fri, 6 Nov 2020 15:06:44 +0000 (10:06 -0500)
See https://github.com/google/oss-fuzz/issues/4586.

libcxx/utils/ci/oss-fuzz.sh

index 8a9421a..d8a1e5e 100755 (executable)
@@ -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