diff options
author | Vince Harron <vince@nethacker.com> | 2015-05-27 04:42:54 +0000 |
---|---|---|
committer | Vince Harron <vince@nethacker.com> | 2015-05-27 04:42:54 +0000 |
commit | 847e261e5d8604184bf85ba29d4dc7c469d915ab (patch) | |
tree | 0a80ecf64e8ac054f28d7079fac91e6742e051d9 | |
parent | dcc2b9f7f55b98ecef120a769bbb1cbb877bfb55 (diff) | |
download | bcm5719-llvm-847e261e5d8604184bf85ba29d4dc7c469d915ab.tar.gz bcm5719-llvm-847e261e5d8604184bf85ba29d4dc7c469d915ab.zip |
test Makefile.rules - pick a more sensible default CC on Linux
Differential Revision: http://reviews.llvm.org/D9920
llvm-svn: 238282
-rw-r--r-- | lldb/test/make/Makefile.rules | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules index 7b6d92ddd2b..9f3d60abd7c 100644 --- a/lldb/test/make/Makefile.rules +++ b/lldb/test/make/Makefile.rules @@ -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 #---------------------------------------------------------------------- |