Uh oh!
There was an error while loading. Please reload this page.
target: Implement OS version detection for Windows - #4585
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Address review comment by @rocksnest
andrewrk
commented
Feb 29, 2020
I'm fine with this, if it's what makes sense to use for feature testing. Maybe we can have the WindowsVersion names as "canonical aliases" which are used when parsing and stringifying the target triple. |
andrewrk
commented
Mar 1, 2020
Unless you have an argument not to, let's use the PEB to get the info |
LemonBoy
commented
Mar 1, 2020
I've already told ya why I don't want to pull this off the PEB, if you feel the need to do so even though there's a perfectly good API for this then feel free to close this PR. I don't want my name on that code. |
I agree with using the |
andrewrk
commented
Mar 1, 2020
Ah, I see #4585 (comment) now - sorry 'bout that. missed it in my notifications. OK, ntdll.dll function call is fine by me. |
I've followed the direction you've set but building the version word by hand feels a bit awkward, maybe using the major.minor.build_no scheme works better...
Closes#4581