[llvm] r241178 - Disallow in-source builds (as we already do for the cmake build).
Jonathan Roelofs
jonathan at codesourcery.com
Wed Jul 1 11:09:22 PDT 2015
Author: jroelofs
Date: Wed Jul 1 13:09:21 2015
New Revision: 241178
URL: http://llvm.org/viewvc/llvm-project?rev=241178&view=rev
Log:
Disallow in-source builds (as we already do for the cmake build).
http://reviews.llvm.org/D10614
Modified:
llvm/trunk/Makefile.config.in
llvm/trunk/autoconf/configure.ac
llvm/trunk/configure
Modified: llvm/trunk/Makefile.config.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.config.in?rev=241178&r1=241177&r2=241178&view=diff
==============================================================================
--- llvm/trunk/Makefile.config.in (original)
+++ llvm/trunk/Makefile.config.in Wed Jul 1 13:09:21 2015
@@ -58,20 +58,9 @@ LLVM_OBJ_ROOT := $(call realpath, @abs
PROJ_SRC_ROOT := $(LLVM_SRC_ROOT)
PROJ_SRC_DIR := $(LLVM_SRC_ROOT)$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR))
-# FIXME: This is temporary during the grace period where in-source builds are
-# deprecated. Convert to a hard error when that period is up.
-#
# See: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html
ifeq ($(LLVM_SRC_ROOT), $(LLVM_OBJ_ROOT))
- $(warning ######################################################################################)
- $(warning # #)
- $(warning # WARNING #)
- $(warning # #)
- $(warning # In-source builds are deprecated. #)
- $(warning # #)
- $(warning # Please configure from a separate build directory! #)
- $(warning # #)
- $(warning ######################################################################################)
+ $(error In-source builds are not allowed. Please configure from a separate build directory!)
endif
ifneq ($(CLANG_SRC_ROOT),)
Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=241178&r1=241177&r2=241178&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Wed Jul 1 13:09:21 2015
@@ -75,15 +75,7 @@ fi
dnl Quit if it is an in-source build
if test ${srcdir} == "." ; then
- AC_MSG_WARN([**************************************************************************************])
- AC_MSG_WARN([* *])
- AC_MSG_WARN([* WARNING *])
- AC_MSG_WARN([* *])
- AC_MSG_WARN([* In-source builds are deprecated. *])
- AC_MSG_WARN([* *])
- AC_MSG_WARN([* Please configure from a separate build directory! *])
- AC_MSG_WARN([* *])
- AC_MSG_WARN([**************************************************************************************])
+ AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!])
fi
dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=241178&r1=241177&r2=241178&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Wed Jul 1 13:09:21 2015
@@ -2033,24 +2033,9 @@ echo "$as_me: error: Already configured
fi
if test ${srcdir} == "." ; then
- { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
-echo "$as_me: WARNING: **************************************************************************************" >&2;}
- { echo "$as_me:$LINENO: WARNING: * *" >&5
-echo "$as_me: WARNING: * *" >&2;}
- { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
-echo "$as_me: WARNING: * WARNING *" >&2;}
- { echo "$as_me:$LINENO: WARNING: * *" >&5
-echo "$as_me: WARNING: * *" >&2;}
- { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
-echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
- { echo "$as_me:$LINENO: WARNING: * *" >&5
-echo "$as_me: WARNING: * *" >&2;}
- { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
-echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
- { echo "$as_me:$LINENO: WARNING: * *" >&5
-echo "$as_me: WARNING: * *" >&2;}
- { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
-echo "$as_me: WARNING: **************************************************************************************" >&2;}
+ { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
+echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
+ { (exit 1); exit 1; }; }
fi
: ${CFLAGS=}
More information about the llvm-commits
mailing list