Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5ee3ca

Browse files
committed
Issue #28066: Fix include search directory logic for out-of-tree builds
1 parent 44c19ec commit c5ee3ca

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ Windows
322322
Build
323323
-----
324324

325+
- Issue #28066: Fix the logic that searches build directories for generated
326+
include files when building outside the source tree.
327+
325328
- Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
326329

327330
- Issue #27705: Update message in validate_ucrtbase.py

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
28202820

28212821

28222822

2823-
if test "$abs_srcdir" != "$abs_builddir"; then
2823+
if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
28242824
# If we're building out-of-tree, we need to make sure the following
28252825
# resources get picked up before their $srcdir counterparts.
28262826
# Objects/ -> typeslots.inc

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ AC_PREREQ(2.65)
1010
AC_INIT(python, PYTHON_VERSION, https://bugs.python.org/)
1111

1212
AC_SUBST(BASECPPFLAGS)
13-
if test "$abs_srcdir" != "$abs_builddir"; then
13+
if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
1414
# If we're building out-of-tree, we need to make sure the following
1515
# resources get picked up before their $srcdir counterparts.
1616
# Objects/ -> typeslots.inc

0 commit comments

Comments
 (0)