[python3-libraries] Fix coverage build (#2653)

This commit is contained in:
Guido Vranken 2019-08-03 15:50:50 +02:00 committed by Abhishek Arya
parent 8de19ce1ed
commit 0bfed8e12e
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,7 @@ case $SANITIZER in
;; ;;
esac esac
export CPYTHON_INSTALL_PATH=$OUT/cpython-install export CPYTHON_INSTALL_PATH=$SRC/cpython-install
rm -rf $CPYTHON_INSTALL_PATH rm -rf $CPYTHON_INSTALL_PATH
mkdir $CPYTHON_INSTALL_PATH mkdir $CPYTHON_INSTALL_PATH
@ -56,6 +56,8 @@ sed -i 's/case TARGET\(.*\): {/\0\nfuzzer_record_code_coverage(f->f_code, f->f_l
make -j$(nproc) make -j$(nproc)
make install make install
cp -R $CPYTHON_INSTALL_PATH $OUT/
cd $SRC/python-library-fuzzers cd $SRC/python-library-fuzzers
rm $CPYTHON_INSTALL_PATH/lib/python3.9/lib-dynload/_tkinter*.so rm $CPYTHON_INSTALL_PATH/lib/python3.9/lib-dynload/_tkinter*.so
make make