[cfe-commits] r140409 - in /cfe/trunk: docs/tools/clang.pod include/clang/Driver/Options.td lib/Driver/Driver.cpp

Chandler Carruth chandlerc at google.com
Fri Sep 30 16:45:14 CDT 2011

On Fri, Sep 30, 2011 at 2:39 PM, Daniel Dunbar <daniel at zuster.org> wrote:

> >> (b) the driver will have to do something to honor that option when it
> >> is calling out to other processes (like the linker), or be able to
> >> adjust paths.
> >
> > I think it's entirely reasonable to temporarily chdir() when calling
> those other processes.
> I wouldn't want to do that, I would rather use a stub to do the
> directory change if necessary. If we are going to get that close to
> being working-directory agnostic, might as well go the full way.

Just to be clear, I think doing a chdir after a fork is entirely reasonable.
Any stub you write will just do the same thing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/cfe-commits/attachments/20110930/78475199/attachment.html 

More information about the cfe-commits mailing list