Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. Index: Makefile.config.in
  2. ===================================================================
  3. --- Makefile.config.in (revision 227604)
  4. +++ Makefile.config.in (working copy)
  5. @@ -58,6 +58,10 @@
  6. PROJ_SRC_ROOT := $(LLVM_SRC_ROOT)
  7. PROJ_SRC_DIR := $(LLVM_SRC_ROOT)$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR))
  8.  
  9. +ifeq ($(LLVM_SRC_ROOT), $(LLVM_OBJ_ROOT))
  10. +$(error In-source builds are discouraged. Configure from a separate build directory.)
  11. +endif
  12. +
  13. ifneq ($(CLANG_SRC_ROOT),)
  14. CLANG_SRC_ROOT:= $(call realpath, $(CLANG_SRC_ROOT))
  15. PROJ_SRC_DIR := $(patsubst $(LLVM_SRC_ROOT)/tools/clang%,$(CLANG_SRC_ROOT)%,$(PROJ_SRC_DIR))
  16. Index: autoconf/configure.ac
  17. ===================================================================
  18. --- autoconf/configure.ac (revision 227604)
  19. +++ autoconf/configure.ac (working copy)
  20. @@ -73,6 +73,11 @@
  21. fi
  22. fi
  23.  
  24. +dnl Quit if it is an in-source build
  25. +if test ${srcdir} == "." ; then
  26. + AC_MSG_ERROR([In-source builds are discouraged. Configure from a separate build directory.])
  27. +fi
  28. +
  29. dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
  30. dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc).
  31. : ${CFLAGS=}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement