{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31986","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31986/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31986/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31986/events","html_url":"https://github.com/rust-lang/rust/pull/31986","id":137541976,"number":31986,"title":"Fix building libstd on emscripten targets.","user":{"login":"ashleysommer","id":402468,"avatar_url":"https://avatars.githubusercontent.com/u/402468?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleysommer","html_url":"https://github.com/ashleysommer","followers_url":"https://api.github.com/users/ashleysommer/followers","following_url":"https://api.github.com/users/ashleysommer/following{/other_user}","gists_url":"https://api.github.com/users/ashleysommer/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleysommer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleysommer/subscriptions","organizations_url":"https://api.github.com/users/ashleysommer/orgs","repos_url":"https://api.github.com/users/ashleysommer/repos","events_url":"https://api.github.com/users/ashleysommer/events{/privacy}","received_events_url":"https://api.github.com/users/ashleysommer/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":10,"created_at":"2016-03-01T11:03:10Z","updated_at":"2016-03-07T12:28:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/31986","html_url":"https://github.com/rust-lang/rust/pull/31986","diff_url":"https://github.com/rust-lang/rust/pull/31986.diff","patch_url":"https://github.com/rust-lang/rust/pull/31986.patch"},"body":"The main cause of the problem is that libstd/os/mod.rs treats emscripten targets as an alias of linux targets, whereas liblibc treats emscripten targets as musl-compliant, so it gets a slightly different struct stat64 defined.\r\nThis commit adds conditional compilation checks to use the correct timestamp format on fs metadata functions in the case of compiling to emscripten targets.\r\n\r\nThis commit also depends needs https://github.com/ashleysommer/rust/commit/f1575cff2d631e977038fdba3fa3422ba5f8f2fe applied in order to successfully build libstd with emscripten target."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/193231545","html_url":"https://github.com/rust-lang/rust/pull/31986#issuecomment-193231545","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/31986","id":193231545,"user":{"login":"bors","id":3372342,"avatar_url":"https://avatars.githubusercontent.com/u/3372342?v=3","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T12:28:51Z","updated_at":"2016-03-07T12:28:51Z","body":":hourglass: Testing commit 660bbf4 with merge d5d838b..."}}