[cfe-commits] r53145 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Eli Friedman eli.friedman at gmail.com
Sat Jul 5 11:49:19 PDT 2008


On Sat, Jul 5, 2008 at 10:58 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> +/* FIXME: this check should be moved to the configure process */
> +#ifdef linux
> +  DefineBuiltinMacro(Buf, "linux=1");
> +#endif

We already have a proper infrastructure for things like this; see
lib/Basic/Targets.cpp.  The only issue is that we don't distinguish
between i386-darwin and i386-linux at the moment.

-Eli



More information about the cfe-commits mailing list