test Makefile.rules - pick a more sensible default CC on Linux

Differential Revision: http://reviews.llvm.org/D9920

llvm-svn: 238282
This commit is contained in:
Vince Harron 2015-05-27 04:42:54 +00:00
parent dcc2b9f7f5
commit 847e261e5d
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,13 @@ endif
#----------------------------------------------------------------------
CC ?= clang
ifeq "$(CC)" "cc"
CC = clang
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
endif
#----------------------------------------------------------------------