Skip to content

Commit 0e9ff69

Browse files
committed
Disallow in-source builds (as we already do for the cmake build).
http://reviews.llvm.org/D10614 llvm-svn: 241178
1 parent be822ed commit 0e9ff69

File tree

3 files changed

+5
-39
lines changed

3 files changed

+5
-39
lines changed

llvm/Makefile.config.in

+1-12
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,9 @@ LLVM_OBJ_ROOT := $(call realpath, @abs_top_builddir@)
5858
PROJ_SRC_ROOT := $(LLVM_SRC_ROOT)
5959
PROJ_SRC_DIR := $(LLVM_SRC_ROOT)$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR))
6060

61-
# FIXME: This is temporary during the grace period where in-source builds are
62-
# deprecated. Convert to a hard error when that period is up.
63-
#
6461
# See: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html
6562
ifeq ($(LLVM_SRC_ROOT), $(LLVM_OBJ_ROOT))
66-
$(warning ######################################################################################)
67-
$(warning # #)
68-
$(warning # WARNING #)
69-
$(warning # #)
70-
$(warning # In-source builds are deprecated. #)
71-
$(warning # #)
72-
$(warning # Please configure from a separate build directory! #)
73-
$(warning # #)
74-
$(warning ######################################################################################)
63+
$(error In-source builds are not allowed. Please configure from a separate build directory!)
7564
endif
7665

7766
ifneq ($(CLANG_SRC_ROOT),)

llvm/autoconf/configure.ac

+1-9
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,7 @@ fi
7575

7676
dnl Quit if it is an in-source build
7777
if test ${srcdir} == "." ; then
78-
AC_MSG_WARN([**************************************************************************************])
79-
AC_MSG_WARN([* *])
80-
AC_MSG_WARN([* WARNING *])
81-
AC_MSG_WARN([* *])
82-
AC_MSG_WARN([* In-source builds are deprecated. *])
83-
AC_MSG_WARN([* *])
84-
AC_MSG_WARN([* Please configure from a separate build directory! *])
85-
AC_MSG_WARN([* *])
86-
AC_MSG_WARN([**************************************************************************************])
78+
AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!])
8779
fi
8880

8981
dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,

llvm/configure

+3-18
Original file line numberDiff line numberDiff line change
@@ -2033,24 +2033,9 @@ echo "$as_me: error: Already configured in ${srcdir}" >&2;}
20332033
fi
20342034

20352035
if test ${srcdir} == "." ; then
2036-
{ echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037-
echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038-
{ echo "$as_me:$LINENO: WARNING: * *" >&5
2039-
echo "$as_me: WARNING: * *" >&2;}
2040-
{ echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2041-
echo "$as_me: WARNING: * WARNING *" >&2;}
2042-
{ echo "$as_me:$LINENO: WARNING: * *" >&5
2043-
echo "$as_me: WARNING: * *" >&2;}
2044-
{ echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2045-
echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2046-
{ echo "$as_me:$LINENO: WARNING: * *" >&5
2047-
echo "$as_me: WARNING: * *" >&2;}
2048-
{ echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2049-
echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2050-
{ echo "$as_me:$LINENO: WARNING: * *" >&5
2051-
echo "$as_me: WARNING: * *" >&2;}
2052-
{ echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053-
echo "$as_me: WARNING: **************************************************************************************" >&2;}
2036+
{ { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2037+
echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2038+
{ (exit 1); exit 1; }; }
20542039
fi
20552040

20562041
: ${CFLAGS=}

0 commit comments

Comments
 (0)