Skip to content

Commit

Permalink
Add PC/ to CPPFLAGS and to SRCDIRS on Mingw
Browse files Browse the repository at this point in the history
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
  • Loading branch information
2 people authored and lazka committed Jul 19, 2023
1 parent 7e18010 commit 0a64353
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6470,6 +6470,16 @@ do
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
done

case $host in
*-*-mingw*)
dnl Required for windows builds as Objects/exceptions.c require
dnl "errmap.h" from $srcdir/PC.
dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
dnl has to be before customized located in ../PC.
CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
;;
esac

AC_SUBST(SRCDIRS)
SRCDIRS="\
Modules \
Expand All @@ -6491,6 +6501,10 @@ SRCDIRS="\
Python \
Python/frozen_modules \
Python/deepfreeze"
case $host in
*-*-mingw*) SRCDIRS="$SRCDIRS PC";;
esac

AC_MSG_CHECKING(for build directories)
for dir in $SRCDIRS; do
if test ! -d $dir; then
Expand Down

0 comments on commit 0a64353

Please sign in to comment.