mirror of https://github.com/google/oss-fuzz.git
dav1d: adapt build to upstream changes (#2791)
dav1d renamed the options build_asm and build_tools. build_asm=false is no longer needed since the upstream fuzzer target disables the asm code path when it runs under memory sanitizer. Use enable_tools=false to skip building the dav1d CLI tools.
This commit is contained in:
parent
ec331c1c6a
commit
a1a80dd3c4
|
@ -23,15 +23,8 @@ rm -rf ${build}
|
||||||
mkdir -p ${build}
|
mkdir -p ${build}
|
||||||
|
|
||||||
# build library
|
# build library
|
||||||
BUILD_ASM="true"
|
|
||||||
|
|
||||||
# MemorySanitizer may report false positives if used with asm code.
|
meson -Denable_tools=false -Dfuzzing_engine=oss-fuzz \
|
||||||
if [[ $CFLAGS = *sanitize=memory* ]]
|
|
||||||
then
|
|
||||||
BUILD_ASM="false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
meson -Dbuild_asm=$BUILD_ASM -Dbuild_tools=false -Dfuzzing_engine=oss-fuzz \
|
|
||||||
-Db_lundef=false -Ddefault_library=static -Dbuildtype=debugoptimized \
|
-Db_lundef=false -Ddefault_library=static -Dbuildtype=debugoptimized \
|
||||||
-Dlogging=false -Dfuzzer_ldflags=$LIB_FUZZING_ENGINE \
|
-Dlogging=false -Dfuzzer_ldflags=$LIB_FUZZING_ENGINE \
|
||||||
${build}
|
${build}
|
||||||
|
|
Loading…
Reference in New Issue