]> granicus.if.org Git - python/commitdiff
Issue #15819: Drop dead code; -IInclude already added unconditionally
authorMartin Panter <vadmium+py@gmail.com>
Tue, 13 Sep 2016 11:41:45 +0000 (11:41 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 13 Sep 2016 11:41:45 +0000 (11:41 +0000)
Misc/NEWS
configure
configure.ac

index a961f6a0e36c2119f75e6b00d624d73786df6e53..7da118abd6178ea94f54dc6ea364fd62f21024e1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -179,6 +179,9 @@ Tests
 Build
 -----
 
+- Issue #15819: The Include directory in the build tree is already searched;
+  drop unused code trying to add it again.
+
 - Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
 
 - Issue #27983: Cause lack of llvm-profdata tool when using clang as
index d9a22eb866aec94eb8a20749a991879345a332e7..6cbdf2a17a987772ef1f066b811b5ece4ad5b4d4 100755 (executable)
--- a/configure
+++ b/configure
@@ -687,7 +687,6 @@ HAS_HG
 HGBRANCH
 HGTAG
 HGVERSION
-BASECPPFLAGS
 SVNVERSION
 ARFLAGS
 ac_ct_AR
@@ -5748,20 +5747,6 @@ else
 fi
 
 
-if test "$abs_srcdir" != "$abs_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.
-    # (A side effect of this is that these resources will automatically be
-    #  regenerated when building out-of-tree, regardless of whether or not
-    #  the $srcdir counterpart is up-to-date.  This is an acceptable trade
-    #  off.)
-    BASECPPFLAGS="-IInclude"
-else
-    BASECPPFLAGS=""
-fi
-
-
 
 
 # Extract the first word of "hg", so it can be a program name with args.
index 5edbf7b2b7efceec73e3ae65f72b60c7924113ec..8b694f01bda6e919d5e681539e05402ceeedc650 100644 (file)
@@ -988,20 +988,6 @@ else
        SVNVERSION="echo Unversioned directory"
 fi
 
-AC_SUBST(BASECPPFLAGS)
-if test "$abs_srcdir" != "$abs_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.
-    # (A side effect of this is that these resources will automatically be
-    #  regenerated when building out-of-tree, regardless of whether or not
-    #  the $srcdir counterpart is up-to-date.  This is an acceptable trade
-    #  off.)
-    BASECPPFLAGS="-IInclude"
-else
-    BASECPPFLAGS=""
-fi
-
 AC_SUBST(HGVERSION)
 AC_SUBST(HGTAG)
 AC_SUBST(HGBRANCH)