{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/27250","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/27250/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/27250/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/27250/events","html_url":"https://github.com/rust-lang/rust/pull/27250","id":96928782,"number":27250,"title":"trans: Try to detect the Universal CRT on MSVC","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-07-23T23:48:02Z","updated_at":"2015-07-24T07:49:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/27250","html_url":"https://github.com/rust-lang/rust/pull/27250","diff_url":"https://github.com/rust-lang/rust/pull/27250.diff","patch_url":"https://github.com/rust-lang/rust/pull/27250.patch"},"body":"Visual Studio 2015, recently released, includes the Universal CRT, a different\r\nflavor than was provided before. The binaries and header files for this library\r\nare included in new locations not previously known about by gcc-rs, and this\r\ncommit adds support for the necessary probing to find these.\r\n\r\nUnfortunately there are no prior examples of this probing to be found in\r\nframeworks like CMake or clang, so this is done is a bit of a sketchy method\r\ntoday. It assumes that the installation is in a relatively standard format and\r\nthen blindly looks for the location of the UCRT. I'd love to switch this over to\r\nusing registry keys for probing, but I was currently unable to find such keys.\r\n\r\nThis should enable the compiler to work outside VS 2015 dev tools prompts."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/124402123","html_url":"https://github.com/rust-lang/rust/pull/27250#issuecomment-124402123","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/27250","id":124402123,"user":{"login":"vadimcn","id":3203809,"avatar_url":"https://avatars.githubusercontent.com/u/3203809?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimcn","html_url":"https://github.com/vadimcn","followers_url":"https://api.github.com/users/vadimcn/followers","following_url":"https://api.github.com/users/vadimcn/following{/other_user}","gists_url":"https://api.github.com/users/vadimcn/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimcn/subscriptions","organizations_url":"https://api.github.com/users/vadimcn/orgs","repos_url":"https://api.github.com/users/vadimcn/repos","events_url":"https://api.github.com/users/vadimcn/events{/privacy}","received_events_url":"https://api.github.com/users/vadimcn/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T07:49:21Z","updated_at":"2015-07-24T07:49:21Z","body":"MSBuild's logic for finding uCRT can be found in this file: `C:\\Program Files (x86)\\Windows Kits\\10\\DesignTime\\CommonConfiguration\\Neutral\\uCRT.props` (if you have VS2015 installed).\r\nLooks like they start with directory specified in this registry entry: `HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots@KitsRoot10`, then append `lib\\$(TargetUniversalCRTVersion)\\ucrt\\$(Arch)`"}}