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: preventing -m options being passed to the compiler


On Wed, 2007-06-20 at 10:44 +1000, Ben Elliston wrote:

> I have a -m option that I am handling in a LIB_SPEC that I do not want
> passed down to cc1.  It seems that by default, the driver passes all -m
> options to cc1.  Is there a way to prevent that on a per-option basis?

To now answer my own question (for the benefit of others): the CC1_SPEC
string can include the sequence %<moption* to strip those options from
the command line.

Ben



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