[libcxx-commits] [libcxx] 1d53b55 - [libc++] Try fixing the oss-fuzz build

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 6 07:07:25 PST 2020


Author: Louis Dionne
Date: 2020-11-06T10:06:44-05:00
New Revision: 1d53b55e18670df06802c4b5df187ef014e8fe7c

URL: https://github.com/llvm/llvm-project/commit/1d53b55e18670df06802c4b5df187ef014e8fe7c
DIFF: https://github.com/llvm/llvm-project/commit/1d53b55e18670df06802c4b5df187ef014e8fe7c.diff

LOG: [libc++] Try fixing the oss-fuzz build

See https://github.com/google/oss-fuzz/issues/4586.

Added: 
    

Modified: 
    libcxx/utils/ci/oss-fuzz.sh

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/ci/oss-fuzz.sh b/libcxx/utils/ci/oss-fuzz.sh
index 8a9421a3ea2d..d8a1e5ef0f7a 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


        


More information about the libcxx-commits mailing list