diff --git a/test/thirdparty/cpython.sh b/test/thirdparty/cpython.sh new file mode 100755 index 0000000000000000000000000000000000000000..3ff06cb08bcaa1891e06dfae7f9a9e350c20e1c3 --- /dev/null +++ b/test/thirdparty/cpython.sh @@ -0,0 +1,15 @@ +#!/bin/bash +repo='git@github.com:python/cpython.git' +. test/thirdparty/common +git reset --hard c75330605d4795850ec74fdc4d69aa5d92f76c00 + +# Python's './configure' command misidentifies chibicc as icc +# (Intel C Compiler) because icc is a substring of chibicc. +# Modify the configure file as a workaround. +sed -i -e 1996,2011d configure.ac +autoreconf + +CC=$chibicc ./configure +$make clean +$make +$make test