From 61dad2aadd9b28c4fef12c466010ece5723c7538 Mon Sep 17 00:00:00 2001 From: dzaima Date: Wed, 27 Oct 2021 23:54:06 +0300 Subject: [PATCH] test for clang and not gcc because /usr/bin/cc --version being gcc will not include gcc in the result --- makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index 96908725..b25a7a94 100644 --- a/makefile +++ b/makefile @@ -53,12 +53,12 @@ single-c: CC = clang PIE = -no-pie -# Detects if we are running GCC instead of Clang -CC_IS_GCC = $(shell $(CC) --version | head -n1 | grep -m 1 -c "gcc") -ifeq (${CC_IS_GCC}, 1) -CCFLAGS = -Wno-parentheses -else +# test if we are running gcc or clang +CC_IS_CLANG = $(shell $(CC) --version | head -n1 | grep -m 1 -c "clang") +ifeq (${CC_IS_CLANG}, 1) CCFLAGS = -Wno-microsoft-anon-tag +else +CCFLAGS = -Wno-parentheses endif ifeq (${singeli}, 1) SINGELIFLAGS = '-DSINGELI'