[PATCH] Unify handling of PWD (llvm patch)

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Aug 9 15:28:46 PDT 2013


On 9 August 2013 18:18, Yunzhong Gao <Yunzhong_Gao at playstation.sony.com> wrote:
>
>   current_path() is already calling ::getcwd() on Linux, is it faster to check getenv($PWD)?

Some tools (including clang) expect the behavior of PWD. The objective
of this change is to centralize the calls to getenv("PWD"). See
http://llvm-reviews.chandlerc.com/D1336.

>   A related question for discussion is whether current_path() should check getenv(%CD%) on Windows.

Good question. Symbolic links are far less common on windows, so I am
not sure. Aaron, what do you think?

Cheers,
Rafael



More information about the llvm-commits mailing list