mirror of https://github.com/python/cpython
Issue #15819: tweak logic in previous commit (e0a2b14a3cf9).
This commit is contained in:
parent
d86ceecf21
commit
fcb009c9d6
|
@ -5180,7 +5180,7 @@ fi
|
|||
BUILDDIR="`pwd`"
|
||||
|
||||
|
||||
if test "$srcdir" != "$BUILDDIR"; then
|
||||
if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
|
||||
# If we're building out-of-tree make sure Include (in the current dir)
|
||||
# gets picked up before its $srcdir counterpart in order for Python-ast.h
|
||||
# and graminit.h to get picked up from the correct directory.
|
||||
|
|
|
@ -857,7 +857,7 @@ fi
|
|||
BUILDDIR="`pwd`"
|
||||
AC_SUBST(BUILDDIR)
|
||||
AC_SUBST(BASECPPFLAGS)
|
||||
if test "$srcdir" != "$BUILDDIR"; then
|
||||
if test "$srcdir" != "." -a "$srcdir" != "$BUILDDIR"; then
|
||||
# If we're building out-of-tree make sure Include (in the current dir)
|
||||
# gets picked up before its $srcdir counterpart in order for Python-ast.h
|
||||
# and graminit.h to get picked up from the correct directory.
|
||||
|
|
Loading…
Reference in New Issue