This is the mail archive of the gcc@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: Command line options and pragmas


On Mon, Jan 09, 2006 at 01:46:21PM -0500, David Taylor wrote:
> For a variety of reasons, we would like to be able to specify
> individual compilation switches *within* individual files.

You don't need a gcc modification to do that; you can arrange to get
the compiler flags from a comment in the file.  A bit of scripting,
and your build system can find these comments, and either use a default
flag set or generate an error if the magic comment is not found.


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