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 @@ -6474,6 +6474,16 @@ do
6474
6474
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
6475
6475
done
6476
6476
6477
+ case $host in
6478
+ *-*-mingw*)
6479
+ dnl Required for windows builds as Objects/exceptions.c require
6480
+ dnl "errmap.h" from $srcdir/PC.
6481
+ dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
6482
+ dnl has to be before customized located in ../PC.
6483
+ CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
6484
+ ;;
6485
+ esac
6486
+
6477
6487
AC_SUBST ( SRCDIRS )
6478
6488
SRCDIRS="\
6479
6489
Modules \
@@ -6495,6 +6505,10 @@ SRCDIRS="\
6495
6505
Python \
6496
6506
Python/frozen_modules \
6497
6507
Python/deepfreeze"
6508
+ case $host in
6509
+ *-*-mingw*) SRCDIRS="$SRCDIRS PC";;
6510
+ esac
6511
+
6498
6512
AC_MSG_CHECKING ( for build directories )
6499
6513
for dir in $SRCDIRS; do
6500
6514
if test ! -d $dir; then
You can’t perform that action at this time.
0 commit comments