This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: user-defined flag in gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: vivo per lei <fidanconscious at googlemail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 08 Jul 2009 13:46:08 -0700
- Subject: Re: user-defined flag in gcc
- References: <24397246.post@talk.nabble.com>
vivo per lei <fidanconscious@googlemail.com> writes:
> I was wondering if anyone has experience in defining a compiler switch in
> gcc which takes a filename as input parameter? "common.opt" seem a good
> starting point...
The -fprofile-dir option takes a directory name as an argument. That
should show you what to do.
Ian