This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -Werror macro


Bruno Moreira Guedes:

> How could I know if -Werror is set?? Is there some macro set when it's
> used or not??

The preprocessor does not define builtin macros for its command line 
options.

You could, perhaps, use a shell construct to check for the presence
of -Werror on the command line, then set the compiler options 
accordingly.

I had been planning such a feature in ctpp (shamless OT plug, I know), 
but there hasn't been any demand so far.

HTH

Ctalk Home Page: http://www.ctalklang.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]