Skip to content

Commit

Permalink
Add test/thirdparty/cpython.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Dec 7, 2020
1 parent 0a5d08c commit 2ed3fda
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/thirdparty/cpython.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
repo='[email protected]: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

0 comments on commit 2ed3fda

Please sign in to comment.