Makefile check for clang
ganesh-k13 opened this issue · comments
Hi, I noticed make
failed if clang is not present, can we add a check like this:
CHECK := $(shell which clang)
ifeq ($(CHECK),)
$(warning no clang found, consider apt-get install clang, using gcc now)
CC = gcc
else
$(info using clang over gcc)
CC = clang
endif
Hi @ganesh-k13 , absolutely! Would you be able to suggest the change in a PR?