File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -6470,6 +6470,16 @@ do
6470
6470
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
6471
6471
done
6472
6472
6473
+ case $host in
6474
+ *-*-mingw*)
6475
+ dnl Required for windows builds as Objects/exceptions.c require
6476
+ dnl "errmap.h" from $srcdir/PC.
6477
+ dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
6478
+ dnl has to be before customized located in ../PC.
6479
+ CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
6480
+ ;;
6481
+ esac
6482
+
6473
6483
AC_SUBST ( SRCDIRS )
6474
6484
SRCDIRS="\
6475
6485
Modules \
@@ -6491,6 +6501,10 @@ SRCDIRS="\
6491
6501
Python \
6492
6502
Python/frozen_modules \
6493
6503
Python/deepfreeze"
6504
+ case $host in
6505
+ *-*-mingw*) SRCDIRS="$SRCDIRS PC";;
6506
+ esac
6507
+
6494
6508
AC_MSG_CHECKING ( for build directories )
6495
6509
for dir in $SRCDIRS; do
6496
6510
if test ! -d $dir; then
You can’t perform that action at this time.
0 commit comments