[PATCH] D14446: Fallback to getpwuid() in path::home_directory() on Unix.

Paweł Bylica via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 08:47:26 PST 2016


chfast added a comment.

In http://reviews.llvm.org/D14446#296637, @rafael wrote:

> > E.g. in llvm-lit testing environment.
>
>
> Isn't the intention precisely to avoid tests creating files in the
>  home directory or being dependent on global config entries?
>
> Cheers,
> Rafael


I'm not sure.

1. Temp directory does not fallback to $HOME.
2. Setting $HOME to "" might be a workaround.
3. On Windows Windows API is used to find out the user's home dir in case information from environment variables are not enough.

I don't really need this change, so if you believe it is an overkill, I'm happy to drop it.


http://reviews.llvm.org/D14446





More information about the llvm-commits mailing list