llvm.org GIT mirror llvm / 4b64e72
Disallow in-source builds (as we already do for the cmake build). http://reviews.llvm.org/D10614 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241178 91177308-0d34-0410-b5e6-96231b3b80d8 Jonathan Roelofs 4 years ago
3 changed file(s) with 5 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
5757 PROJ_SRC_ROOT := $(LLVM_SRC_ROOT)
5858 PROJ_SRC_DIR := $(LLVM_SRC_ROOT)$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR))
5959
60 # FIXME: This is temporary during the grace period where in-source builds are
61 # deprecated. Convert to a hard error when that period is up.
62 #
6360 # See: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html
6461 ifeq ($(LLVM_SRC_ROOT), $(LLVM_OBJ_ROOT))
65 $(warning ######################################################################################)
66 $(warning # #)
67 $(warning # WARNING #)
68 $(warning # #)
69 $(warning # In-source builds are deprecated. #)
70 $(warning # #)
71 $(warning # Please configure from a separate build directory! #)
72 $(warning # #)
73 $(warning ######################################################################################)
62 $(error In-source builds are not allowed. Please configure from a separate build directory!)
7463 endif
7564
7665 ifneq ($(CLANG_SRC_ROOT),)
7474
7575 dnl Quit if it is an in-source build
7676 if test ${srcdir} == "." ; then
77 AC_MSG_WARN([**************************************************************************************])
78 AC_MSG_WARN([* *])
79 AC_MSG_WARN([* WARNING *])
80 AC_MSG_WARN([* *])
81 AC_MSG_WARN([* In-source builds are deprecated. *])
82 AC_MSG_WARN([* *])
83 AC_MSG_WARN([* Please configure from a separate build directory! *])
84 AC_MSG_WARN([* *])
85 AC_MSG_WARN([**************************************************************************************])
77 AC_MSG_ERROR([In-source builds are not allowed. Please configure from a separate build directory!])
8678 fi
8779
8880 dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
20322032 fi
20332033
20342034 if test ${srcdir} == "." ; then
2035 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2036 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2037 { echo "$as_me:$LINENO: WARNING: * *" >&5
2038 echo "$as_me: WARNING: * *" >&2;}
2039 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2040 echo "$as_me: WARNING: * WARNING *" >&2;}
2041 { echo "$as_me:$LINENO: WARNING: * *" >&5
2042 echo "$as_me: WARNING: * *" >&2;}
2043 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2044 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2045 { echo "$as_me:$LINENO: WARNING: * *" >&5
2046 echo "$as_me: WARNING: * *" >&2;}
2047 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2048 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2049 { echo "$as_me:$LINENO: WARNING: * *" >&5
2050 echo "$as_me: WARNING: * *" >&2;}
2051 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2052 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2035 { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2036 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2037 { (exit 1); exit 1; }; }
20532038 fi
20542039
20552040 : ${CFLAGS=}