Displaying 2 results from an estimated 2 matches for "1c5b428ff823".
2020 Nov 10
1
unusual use of getenv
...s://reviews.llvm.org/D61446. The name of the file where this trick
> is used "LinkAllPasses.h" should give a hint what it is used for.
> Looking into the entire history of the file, I have no idea how one
> would have concluded this whas a Windows thing. It first occurred in
> 1c5b428ff8234cef705bf57bc1418deb4db25c83 (SVN r23921) when Windows
> support was not yet a thing.
I concluded this was a windows thing because the origin of the code
seems to be in 00d5508496c1ec0540da5714b0ed66e64b623df5 which uses the
windows only `GetCurrentProcess` instead of `getenv`. Chris Lattner the...
2020 Nov 02
4
unusual use of getenv
Oh, right, this stuff. I guess the non-windows solution might've been a
volatile read, for instance? So maybe not so much that the general
machinery isn't needed, but that perhaps MSVC does something interesting
with a volatile read or whatever other solution might've been used.
Hmm, not sure why the whole file was added only when MSVC support was added
- if it is a "static