From fe39e0184f543fea74ae007d67629158cf75bd36 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sun, 13 Sep 2020 00:02:42 +0200 Subject: [PATCH] gcc_plugin switch CC to gcc when cc is something else --- GNUmakefile.gcc_plugin | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GNUmakefile.gcc_plugin b/GNUmakefile.gcc_plugin index 3575ff4a..fe2dc266 100644 --- a/GNUmakefile.gcc_plugin +++ b/GNUmakefile.gcc_plugin @@ -51,6 +51,11 @@ ifeq "clang++" "$(CXX)" CXX = g++ endif +ifeq "$(findstring Foundation,$(shell $(CC) --version))" "" + CC = gcc + CXX = g++ +endif + PLUGIN_FLAGS = -fPIC -fno-rtti -I"$(shell $(CC) -print-file-name=plugin)/include" HASH=\#