diff options
author | 2019-05-29 16:54:13 -0700 | |
---|---|---|
committer | 2019-05-29 16:54:13 -0700 | |
commit | 037c1a75b01fa32cb4477ab231f85086cf09b073 (patch) | |
tree | c184a6100e8e84f2db395fd764be6fdf0185d9c5 /projects/icu | |
parent | 55fdfd13d73ec6bb4af48258380a32208624bd38 (diff) |
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.
Diffstat (limited to 'projects/icu')
-rwxr-xr-x | projects/icu/build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/projects/icu/build.sh b/projects/icu/build.sh index db040a66..2d8e3532 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 |