mirror of https://github.com/google/oss-fuzz.git
[cpython] Fix coverage build (#2607)
This commit is contained in:
parent
bd41f750e9
commit
4d13e092dd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue