Commit 6a07b99c authored by Adrian Prantl's avatar Adrian Prantl
Browse files

Remove CC autodetection from Makefile.rules

Auto-detecting CC in Makefile.rules is no longer useful. Ever since
out-of-tree builds we are better off just running lldb-dotest which
sets it directly. This also makes it harder to accidentally unset CC
in a Makefile.

Differential Revision: https://reviews.llvm.org/D68731

llvm-svn: 374402
parent 418893d8
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -171,15 +171,8 @@ endif
#   o cxx_compiler
#   o cxx_linker
#----------------------------------------------------------------------
CC ?= clang
ifeq "$(CC)" "cc"
	ifneq "$(shell which clang)" ""
		CC = clang
	else ifneq "$(shell which clang-3.5)" ""
		CC = clang-3.5
	else ifneq "$(shell which gcc)" ""
		CC = gcc
	endif
ifeq "$(CC)" ""
$(error "C compiler is not specified. Please run tests through lldb-dotest or lit")
endif

#----------------------------------------------------------------------