[cfe-dev] controlling the value of DW_AT_comp_dir
Ruben Van Boxem
vanboxem.ruben at gmail.com
Fri Oct 21 00:45:13 PDT 2011
Op 21 okt. 2011 05:12 schreef "Don Quixote de la Mancha" <
quixote at dulcineatech.com> het volgende:
> It would be best if this were cross-platform.
> On POSIX systems, the PWD environment variable is set from the current
> working directory of the shell.
> The current working directory is also a POSIX concept. Do Win32 and
> Win64 have an equivalent?
Yes, I know of two: %CD% and the much better GetCurrentWorkingDirectoryW and
subsequent conversion to UTF-8.
> Windows does have environment variables but I don't think it has
> anything like $PWD (or, for Windows, %PWD%).
I think %CD% is quite similar to $PWD.
> But do Windows programs have a current working directory that is part
> of the process state?
> If so, CLang's Windows driver could look up the Win32 or Win64 current
> working directory and pass it down the line, or perhaps create a %PWD%
> environment variable.
> What other operating systems do we support that are neither Windows nor
> Don Quixote de la Mancha
> Dulcinea Technologies Corporation
> Software of Elegance and Beauty
> quixote at dulcineatech.com
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev