mkirchner / gc

Simple, zero-dependency garbage collection for C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?