From 037c1a75b01fa32cb4477ab231f85086cf09b073 Mon Sep 17 00:00:00 2001 From: gnrunge <41129501+gnrunge@users.noreply.github.com> Date: Wed, 29 May 2019 16:54:13 -0700 Subject: [PATCH] Modifes build.sh script to work with ICU fuzzer target files that were renamed (#2476) to end with .cpp suffix instead of .cc to align with ICU standards. --- projects/icu/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/icu/build.sh b/projects/icu/build.sh index db040a667..2d8e35323 100755 --- a/projects/icu/build.sh +++ b/projects/icu/build.sh @@ -33,17 +33,17 @@ export UBSAN_OPTIONS="detect_leaks=0" make -j$(nproc) -$CXX $CXXFLAGS -std=c++11 -c $SRC/icu/icu4c/source/test/fuzzer/locale_util.cc \ +$CXX $CXXFLAGS -std=c++11 -c $SRC/icu/icu4c/source/test/fuzzer/locale_util.cpp \ -I$SRC/icu4c/source/test/fuzzer FUZZER_PATH=$SRC/icu/icu4c/source/test/fuzzer -# Assumes that all fuzzers files end with'_fuzzer.cc'. -FUZZERS=$FUZZER_PATH/*_fuzzer.cc +# Assumes that all fuzzers files end with'_fuzzer.cpp'. +FUZZERS=$FUZZER_PATH/*_fuzzer.cpp for fuzzer in $FUZZERS; do file=${fuzzer:${#FUZZER_PATH}+1} $CXX $CXXFLAGS -std=c++11 \ - $fuzzer -o $OUT/${file/.cc/} locale_util.o \ + $fuzzer -o $OUT/${file/.cpp/} locale_util.o \ -I$SRC/icu/icu4c/source/common -I$SRC/icu/icu4c/source/i18n -L$WORK/icu/lib \ $LIB_FUZZING_ENGINE -licui18n -licuuc -licutu -licudata done