mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 20:24:45 +03:00
Update build.sh
This commit is contained in:
parent
cc927343da
commit
3912518b6b
|
@ -14,9 +14,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
python3 setup.py build --build-base=/tmp/build install
|
||||
|
||||
# Build fuzzers in $OUT.
|
||||
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
|
||||
fuzzer_basename=$(basename -s .py $fuzzer)
|
||||
|
@ -33,7 +31,6 @@ for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
|
|||
--add-binary /usr/local/lib/libwebpmux.so.3:. \
|
||||
--add-binary /usr/local/lib/libxcb.so.1:. \
|
||||
--distpath $OUT --onefile --name $fuzzer_package $fuzzer
|
||||
|
||||
# Create execution wrapper.
|
||||
echo "#!/bin/sh
|
||||
# LLVMFuzzerTestOneInput for fuzzer detection.
|
||||
|
@ -43,6 +40,5 @@ ASAN_OPTIONS=\$ASAN_OPTIONS:symbolize=1:external_symbolizer_path=\$this_dir/llvm
|
|||
\$this_dir/$fuzzer_package \$@" > $OUT/$fuzzer_basename
|
||||
chmod u+x $OUT/$fuzzer_basename
|
||||
done
|
||||
|
||||
find Tests/images Tests/icc -print | zip -q $OUT/fuzz_pillow_seed_corpus.zip -@
|
||||
find Tests/fonts -print | zip -q $OUT/fuzz_font_seed_corpus.zip -@
|
||||
|
|
Loading…
Reference in New Issue
Block a user