Skip to content

Commit

Permalink
unix: include object files from Parser/pegen
Browse files Browse the repository at this point in the history
This directory was added in Python 3.9 and contains core symbols
that are necessary to link a libpython.
  • Loading branch information
indygreg committed Oct 7, 2020
1 parent db20466 commit 7616370
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,12 @@ fi

# Also copy object files so they can be linked in a custom manner by
# downstream consumers.
for d in Modules Objects Parser Programs Python; do
mkdir -p ${ROOT}/out/python/build/$d
cp -av $d/*.o ${ROOT}/out/python/build/$d/
for d in Modules Objects Parser Parser/pegen Programs Python; do
# Parser/pegen only exists in 3.9+
if [ -d $d ]; then
mkdir -p ${ROOT}/out/python/build/$d
cp -av $d/*.o ${ROOT}/out/python/build/$d/
fi
done

# Also copy extension variant metadata files.
Expand Down

0 comments on commit 7616370

Please sign in to comment.