gcc_plugin switch CC to gcc when cc is something else

This commit is contained in:
hexcoder-
2020-09-13 00:02:42 +02:00
parent 688e2c87df
commit fe39e0184f

View File

@ -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=\#