gcc_plugin switch CC to gcc when cc is something else
MODIFY
GNUmakefile.gcc_plugin
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=\#

gcc_plugin switch CC to gcc when cc is something else