aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile.gcc_plugin
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-09-13 00:02:42 +0200
committerhexcoder- <heiko@hexco.de>2020-09-13 00:02:42 +0200
commitfe39e0184f543fea74ae007d67629158cf75bd36 (patch)
treed0b946889bdd632404334af4676464794f9c4fbe /GNUmakefile.gcc_plugin
parent688e2c87df90cc63032aa4d1961493f52ebbd3c5 (diff)
downloadAFLplusplus-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_plugin5
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=\#