{"action":"created","issue":{"url":"https://api.github.com/repos/ziglang/zig/issues/1266","repository_url":"https://api.github.com/repos/ziglang/zig","labels_url":"https://api.github.com/repos/ziglang/zig/issues/1266/labels{/name}","comments_url":"https://api.github.com/repos/ziglang/zig/issues/1266/comments","events_url":"https://api.github.com/repos/ziglang/zig/issues/1266/events","html_url":"https://github.com/ziglang/zig/pull/1266","id":342982128,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNzUzMTMz","number":1266,"title":"Self hosted libc hello world","user":{"login":"andrewrk","id":106511,"node_id":"MDQ6VXNlcjEwNjUxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/106511?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-20T05:55:00Z","updated_at":"2018-07-24T14:06:56Z","closed_at":"2018-07-24T04:31:34Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ziglang/zig/pulls/1266","html_url":"https://github.com/ziglang/zig/pull/1266","diff_url":"https://github.com/ziglang/zig/pull/1266.diff","patch_url":"https://github.com/ziglang/zig/pull/1266.patch"},"body":"What's left before merging to master:\r\n\r\n * [x] add test case for this to the test suite\r\n * [x] add the windows support for finding libc\r\n * [x] add the windows linking code\r\n * [x] make sure finding libc works on macos\r\n * [x] add the macos linking code\r\n\r\n![screenshot_2018-07-22_23-27-29](https://user-images.githubusercontent.com/106511/43057383-dd9950d8-8e0f-11e8-98c7-ab5c3e9cf7f6.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ziglang/zig/issues/comments/407419201","html_url":"https://github.com/ziglang/zig/pull/1266#issuecomment-407419201","issue_url":"https://api.github.com/repos/ziglang/zig/issues/1266","id":407419201,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQxOTIwMQ==","user":{"login":"andrewrk","id":106511,"node_id":"MDQ6VXNlcjEwNjUxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/106511?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T14:06:56Z","updated_at":"2018-07-24T14:06:56Z","author_association":"MEMBER","body":"golang creates static binaries that have no dependency on libc, which is why you don't need those libraries. This is true in Zig as well - if you grab the stage1 compiler and do `zig build-exe example/hello_world.zig --target-os windows --target-arch x86_64` you end up with a static `hello_world.exe` for windows.\r\n\r\nThe difference is that golang doesn't support linking against libc when cross compiling for windows (as far as I'm aware) whereas zig does.\r\n\r\nOnce stage2 supports all the language features used by `std/special/bootstrap.zig`, then it can create binaries that don't depend on libc."}}
{"actor":{"display_login":"andrewrk"}}