mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
gcc_plugin: better error message when compiler and plugin versions do not match
This commit is contained in:
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
#define BUILD_INLINE_INST
|
#define BUILD_INLINE_INST
|
||||||
|
|
||||||
#include "../config.h"
|
#include "../include/config.h"
|
||||||
#include "../include/debug.h"
|
#include "../include/debug.h"
|
||||||
|
|
||||||
/* clear helper macros AFL types pull in, which intervene with gcc-plugin
|
/* clear helper macros AFL types pull in, which intervene with gcc-plugin
|
||||||
@ -502,7 +502,7 @@ int plugin_is_GPL_compatible = 1;
|
|||||||
|
|
||||||
static struct plugin_info afl_plugin_info = {
|
static struct plugin_info afl_plugin_info = {
|
||||||
|
|
||||||
.version = "20191015",
|
.version = "20200519",
|
||||||
.help = "AFL++ gcc plugin\n",
|
.help = "AFL++ gcc plugin\n",
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -528,7 +528,7 @@ int plugin_init(struct plugin_name_args * plugin_info,
|
|||||||
|
|
||||||
if (!plugin_default_version_check(version, &gcc_version)) {
|
if (!plugin_default_version_check(version, &gcc_version)) {
|
||||||
|
|
||||||
FATAL(G_("Incompatible gcc/plugin versions!"));
|
FATAL(G_("Incompatible gcc/plugin versions! Expected GCC %d.%d"), GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user