This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: where temporary files are written
- From: Daniel Lohmann <daniel dot lohmann at informatik dot uni-erlangen dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 09 May 2007 16:39:40 +0200
- Subject: Re: where temporary files are written
- References: <200705090307.l4937Ddp010846@dell2.home>
Marty Leisner wrote:
> I didn't see an option to tell gcc where to write temporary files
> (in currently writes them in in the current directory).
It does? AFAIK gcc creates them in the output directory, that is, the
directory where the object file is created.
Daniel
> The way linux builds kernel modules is it runs gcc from the KERNEL
> install directory, so doing something like
>
> make CC='gcc -save-temps'
>
> writes the temporary files into the kernel directory...(which may be readonly).
>
> What I'm looking to accomplish is
>
> make CC="gcc -save-temps --temppath=$PWD"
>
> to write temporary files into "temppath".
>
> comments?
>
> marty