Add test/thirdparty/cpython.sh

This commit is contained in:
Rui Ueyama 2020-09-20 12:14:19 +09:00
parent 0a5d08c8f8
commit 2ed3fdafa3
1 changed files with 15 additions and 0 deletions

15
test/thirdparty/cpython.sh vendored Executable file
View File

@ -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