mirror of https://github.com/rui314/chibicc
Add test/thirdparty/cpython.sh
This commit is contained in:
parent
0a5d08c8f8
commit
2ed3fdafa3
|
@ -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
|
Loading…
Reference in New Issue