Author: vharron Date: Tue May 26 23:42:54 2015 New Revision: 238282 URL: http://llvm.org/viewvc/llvm-project?rev=238282&view=rev Log: test Makefile.rules - pick a more sensible default CC on Linux
Differential Revision: http://reviews.llvm.org/D9920 Modified: lldb/trunk/test/make/Makefile.rules Modified: lldb/trunk/test/make/Makefile.rules URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/make/Makefile.rules?rev=238282&r1=238281&r2=238282&view=diff ============================================================================== --- lldb/trunk/test/make/Makefile.rules (original) +++ lldb/trunk/test/make/Makefile.rules Tue May 26 23:42:54 2015 @@ -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 #---------------------------------------------------------------------- _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits