This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: preventing -m options being passed to the compiler
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Ben Elliston <bje at au1 dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 20 Jun 2007 11:58:59 +1000
- Subject: Re: preventing -m options being passed to the compiler
- References: <1182300245.30756.2.camel@localhost>
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