diff --git a/Makefile b/Makefile index ed7d5b2e543..70e7dd3dd70 100644 --- a/Makefile +++ b/Makefile @@ -448,10 +448,16 @@ endef .PHONY: test test: +ifeq ($(CC),cc) + $(eval CC=clang) +endif $(call test,vpp,test) .PHONY: test-debug test-debug: +ifeq ($(CC),cc) + $(eval CC=clang) +endif $(call test,vpp_debug,test) .PHONY: test-cov