From 2cab929fb5af9efffdd1b13b4d02172676728dbe Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 22 Jul 2021 03:32:27 +0300 Subject: [PATCH] allow 'make CC=gcc' --- obj/subMakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/obj/subMakefile b/obj/subMakefile index 75504b32..e8d849ff 100644 --- a/obj/subMakefile +++ b/obj/subMakefile @@ -1,8 +1,10 @@ SHELL=/usr/bin/env bash CC=clang +ifeq ($(CC),gcc) +CCFLAGS=-Wno-parentheses +else CCFLAGS=-Wno-microsoft-anon-tag -# CC=gcc -# CCFLAGS=-Wno-parentheses +endif CMD=$(CC) -std=gnu11 -Wall -Wno-unused-function -fms-extensions ${CCFLAGS} $(FLAGS) -fPIE -MMD -MP -MF