[Python-checkins] cpython (3.5): Issue #28066: Fix include search directory logic for out-of-tree builds
martin.panter
python-checkins at python.org
Sun Sep 11 21:56:27 EDT 2016
https://hg.python.org/cpython/rev/c26dce72a4da
changeset: 103676:c26dce72a4da
branch: 3.5
parent: 103674:3f7e4ae9eba3
user: Martin Panter <vadmium+py at gmail.com>
date: Mon Sep 12 01:32:03 2016 +0000
summary:
Issue #28066: Fix include search directory logic for out-of-tree builds
files:
Misc/NEWS | 3 +++
configure | 2 +-
configure.ac | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -322,6 +322,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 --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -2820,7 +2820,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 --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list