summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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