# HG changeset patch # Parent ef63e1c999bd07853b43271a7f0acfc40b590445 Issue #28066: Fix include search directory logic for out-of-tree builds diff -r ef63e1c999bd Misc/NEWS --- a/Misc/NEWS Sun Sep 11 11:23:38 2016 +0300 +++ b/Misc/NEWS Sun Sep 11 09:22:43 2016 +0000 @@ -394,6 +394,9 @@ Build ----- +- Issue #28066: Fix the logic that searches build directories for generated + include files when building outside the source tree. + - Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach) - Issue #27705: Update message in validate_ucrtbase.py diff -r ef63e1c999bd configure --- a/configure Sun Sep 11 11:23:38 2016 +0300 +++ b/configure Sun Sep 11 09:22:43 2016 +0000 @@ -2679,7 +2679,7 @@ -if test "$abs_srcdir" != "$abs_builddir"; then +if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then # If we're building out-of-tree, we need to make sure the following # resources get picked up before their $srcdir counterparts. # Objects/ -> typeslots.inc diff -r ef63e1c999bd configure.ac --- a/configure.ac Sun Sep 11 11:23:38 2016 +0300 +++ b/configure.ac Sun Sep 11 09:22:43 2016 +0000 @@ -10,7 +10,7 @@ AC_INIT(python, PYTHON_VERSION, https://bugs.python.org/) AC_SUBST(BASECPPFLAGS) -if test "$abs_srcdir" != "$abs_builddir"; then +if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then # If we're building out-of-tree, we need to make sure the following # resources get picked up before their $srcdir counterparts. # Objects/ -> typeslots.inc