From 643b1ae48526e28af656ca5a93a9d91f27fb7568 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 4 Oct 2021 22:37:10 +0200 Subject: [PATCH] makefile: detect prefixed gcc properly When cross-compiling, we'll have CC=aarch64-unknown-linux-gcc or similar. --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index c5ea6faa..f17e7bbb 100644 --- a/makefile +++ b/makefile @@ -36,7 +36,7 @@ single-c: # compiler setup CC = clang -ifeq ($(CC),gcc) +ifneq ($(findstring gcc, $(CC)),) CCFLAGS = -Wno-parentheses else CCFLAGS = -Wno-microsoft-anon-tag