[cpython] Fix coverage build (#2607)

This commit is contained in:
Ammar Askar 2019-08-10 00:02:43 -04:00 committed by Abhishek Arya
parent bd41f750e9
commit 4d13e092dd
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ case $SANITIZER in
FLAGS+=("--with-undefined-behavior-sanitizer")
;;
esac
./configure "${FLAGS[@]}" --prefix $OUT
./configure "${FLAGS[@]:-}" --prefix $OUT
# We use altinstall to avoid having the Makefile create symlinks
make -j$(nproc) altinstall

View File

@ -52,7 +52,7 @@ cp $SRC/python-library-fuzzers/python_coverage.h Python/
sed -i '1 s/^.*$/#include "python_coverage.h"/g' Python/ceval.c
sed -i 's/case TARGET\(.*\): {/\0\nfuzzer_record_code_coverage(f->f_code, f->f_lasti);/g' Python/ceval.c
./configure "${FLAGS[@]+"${FLAGS[@]}"}" --prefix=$CPYTHON_INSTALL_PATH
./configure "${FLAGS[@]:-}" --prefix=$CPYTHON_INSTALL_PATH
make -j$(nproc)
make install