Change https://gerrit.fd.io/r/c/vpp/+/42189 changed default compiler
from clang to GCC as a side effect when using Makefile.
Restore default behavior.
Type: fix
Fixes:
b7a00271990b67458afd2e660f92ebf3ebb6f887
Change-Id: I3478fa7c5e2132486a4c3b9d8363c60ed81b0d43
Signed-off-by: Benoît Ganne <[email protected]>
SUDO?=sudo -E
DPDK_CONFIG?=no-pci
+# we prefer clang by default
+ifeq ($(CC),cc)
+ CC=clang
+endif
+
ifeq ($(strip $(SHELL)),)
$(error "bash not found, VPP requires bash to build")
endif
.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