This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [plugins] checking the compiler version
On Wed, Apr 8, 2009 at 08:36, Ian Lance Taylor <iant@google.com> wrote:
> #ifndef PLUGIN_PROVIDES_VERSION_CHECK
> bool
> plugin_check_version(const char* version)
> {
> Âreturn strcmp(version, PLUGIN_VERSION) == 0;
> }
> #endif
>
> and then somehow arrange for that to be the callback for the version
> check.
I agree. This sounds like a good first approach. We can refine this
later, if needed.
Diego.