Index: test/make/Makefile.rules =================================================================== --- test/make/Makefile.rules +++ test/make/Makefile.rules @@ -69,7 +69,13 @@ #---------------------------------------------------------------------- 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 #----------------------------------------------------------------------