diff options
author | hexcoder- <heiko@hexco.de> | 2020-09-13 00:02:42 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-09-13 00:02:42 +0200 |
commit | fe39e0184f543fea74ae007d67629158cf75bd36 (patch) | |
tree | d0b946889bdd632404334af4676464794f9c4fbe /GNUmakefile.gcc_plugin | |
parent | 688e2c87df90cc63032aa4d1961493f52ebbd3c5 (diff) | |
download | AFLplusplus-fe39e0184f543fea74ae007d67629158cf75bd36.tar.gz |
gcc_plugin switch CC to gcc when cc is something else
Diffstat (limited to 'GNUmakefile.gcc_plugin')
-rw-r--r-- | GNUmakefile.gcc_plugin | 5 |
1 files changed, 5 insertions, 0 deletions
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=\# |