[cfe-dev] controlling the value of DW_AT_comp_dir

Don Quixote de la Mancha quixote at dulcineatech.com
Thu Oct 20 20:08:44 PDT 2011


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?

Windows does have environment variables but I don't think it has
anything like $PWD (or, for Windows, %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 POSIX?

-- 
Don Quixote de la Mancha
Dulcinea Technologies Corporation
Software of Elegance and Beauty
http://www.dulcineatech.com
quixote at dulcineatech.com



More information about the cfe-dev mailing list