Lines Matching +full:- +full:- +full:keep +full:- +full:going
1 #!/bin/bash -eu
8 # http://www.apache.org/licenses/LICENSE-2.0
22 # Remove -pthread from CFLAGS, this trips up ./configure
24 CFLAGS=${CFLAGS//"-pthread"/}
29 FLAGS+=("--with-address-sanitizer")
32 FLAGS+=("--with-memory-sanitizer")
35 FLAGS+=("--without-ensurepip")
36 # -msan-keep-going is needed to allow MSAN's halt_on_error to function
37 FLAGS+=("CFLAGS=-mllvm -msan-keep-going=1")
40 FLAGS+=("--with-undefined-behavior-sanitizer")
44 export CPYTHON_INSTALL_PATH=$SRC/cpython-install
45 rm -rf $CPYTHON_INSTALL_PATH
49 cd cpython-3.8.7/
50 cp $SRC/django-fuzzers/python_coverage.h Python/
53 sed -i '1 s/^.*$/#include "python_coverage.h"/g' Python/ceval.c
54 sed -i 's/case TARGET\(.*\): {/\0\nfuzzer_record_code_coverage(f->f_code, f->f_lasti);/g' Python/ce…
56 ./configure "${FLAGS[@]:-}" --prefix=$CPYTHON_INSTALL_PATH
57 make -j$(nproc)
60 cp -R $CPYTHON_INSTALL_PATH $OUT/
62 rm -rf $OUT/django-dependencies
63 mkdir $OUT/django-dependencies
64 $CPYTHON_INSTALL_PATH/bin/pip3 install asgiref pytz sqlparse backports.zoneinfo -t $OUT/django-depe…
66 cd $SRC/django-fuzzers
67 rm $CPYTHON_INSTALL_PATH/lib/python3.8/lib-dynload/_tkinter*.so
70 cp -R $SRC/django/* $OUT/
72 cp $SRC/django-fuzzers/fuzzer-utils $OUT/
73 cp $SRC/django-fuzzers/utils.py $OUT/
74 zip -j $OUT/fuzzer-utils_seed_corpus.zip $SRC/django-fuzzers/corp-utils/*