llvm.org GIT mirror llvm / 7dda4c9
Deprecate in-source autotools builds This is a followup from: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html Upgrade instructions: $ mv llvm/include/llvm/Config/config.h ./config.h.BACKUP # copy the configure line from line 7 of llvm/config.log # (for example: `$ ./configure --no-create --no-recursion`) $ mkdir build $ cd build # run the configure line, but this time with '../llvm' at the beginning: $ ../llvm/configure --no-create --no-recursion These warnings will soon be turned into hard errors after a week. Speak up now if this is going to be a problem for you. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236399 91177308-0d34-0410-b5e6-96231b3b80d8 Jonathan Roelofs 4 years ago
3 changed file(s) with 50 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5656 LLVM_OBJ_ROOT := $(call realpath, @abs_top_builddir@)
5757 PROJ_SRC_ROOT := $(LLVM_SRC_ROOT)
5858 PROJ_SRC_DIR := $(LLVM_SRC_ROOT)$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR))
59
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 #
63 # See: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html
64 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 ######################################################################################)
74 endif
5975
6076 ifneq ($(CLANG_SRC_ROOT),)
6177 CLANG_SRC_ROOT:= $(call realpath, $(CLANG_SRC_ROOT))
7070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
7171 AC_MSG_ERROR([Already configured in ${srcdir}])
7272 fi
73 fi
74
75 dnl Quit if it is an in-source build
76 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([**************************************************************************************])
7386 fi
7487
7588 dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
20292029 fi
20302030 fi
20312031
2032 if test ${srcdir} == "." ; then
2033 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2034 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2035 { echo "$as_me:$LINENO: WARNING: * *" >&5
2036 echo "$as_me: WARNING: * *" >&2;}
2037 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2038 echo "$as_me: WARNING: * WARNING *" >&2;}
2039 { echo "$as_me:$LINENO: WARNING: * *" >&5
2040 echo "$as_me: WARNING: * *" >&2;}
2041 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2042 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2043 { echo "$as_me:$LINENO: WARNING: * *" >&5
2044 echo "$as_me: WARNING: * *" >&2;}
2045 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2046 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2047 { echo "$as_me:$LINENO: WARNING: * *" >&5
2048 echo "$as_me: WARNING: * *" >&2;}
2049 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2050 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2051 fi
2052
20322053 : ${CFLAGS=}
20332054 : ${CXXFLAGS=}
20342055