Add rule to detect Clang - when detected, set -Wno-invalid-source-encoding

This commit is contained in:
Twinaphex 2015-09-05 16:48:11 +02:00
parent 1310263470
commit 67dd426339

View File

@ -23,6 +23,10 @@ endif
include Makefile.common
ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang"),1)
DEFINES += -Wno-invalid-source-encoding
endif
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
ifeq ($(HAVE_DYLIB), 1)