{"id":25197080,"url":"https://github.com/thislight/zigd","last_synced_at":"2025-07-16T12:34:29.384Z","repository":{"id":275729617,"uuid":"926971556","full_name":"thislight/zigd","owner":"thislight","description":"Build and manage zig compiler from source tree.","archived":false,"fork":false,"pushed_at":"2025-02-04T09:20:49.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T09:32:03.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thislight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-04T07:15:05.000Z","updated_at":"2025-02-04T09:20:52.000Z","dependencies_parsed_at":"2025-02-04T09:32:06.406Z","dependency_job_id":"896e9a83-abd0-4a79-8f2e-6a5a580c218f","html_url":"https://github.com/thislight/zigd","commit_stats":null,"previous_names":["thislight/zigd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fzigd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fzigd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fzigd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fzigd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thislight","download_url":"https://codeload.github.com/thislight/zigd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208497,"owners_count":20901571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-10T01:51:20.109Z","updated_at":"2025-04-04T16:26:49.559Z","avatar_url":"https://github.com/thislight.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zigd(ev)\n\nBuild and manage zig compiler from source tree.\n\n- Automatically set up zig-bootstrap.\n- Use ccache if presents.\n- Shortcuts to invoke different compilers.\n\nIf you just want a usable zig compiler - You may look at [zigup](https://github.com/marler8997/zigup).\nZigd focus on the zig compiler (\u0026 std) development.\n\n## Getting Started\n\nHere assumes you already have a working zigd, named `zigd`.\nYou also must have git, clang, cmake and ninja on your computer.\n\nTo use zigd, you must tell zigd where can found zig compiler source tree,\nwith environment variable `ZIGD_TREE`.\n\n```sh\nexport ZIGD_TREE=~/Projects/zig/\n```\n\nUse `zigd build` to build the compilers:\n\n```sh\nzigd build bootstrap stage1 stage2 stage3\n```\n\nThis command builds all the stages zigd provides:\n\n- `bootstrap`: [zig-bootstrap](https://github.com/ziglang/zig-bootstrap), which\n    provides the key dependencies, like LLVM, with a copy of a new zig compiler.\n- `stage1`: The zig compiler from your local source tree, built with CMake/Ninja.\n- `stage2`: The zig compiler from your local source tree, with ReleaseFast optimization.\n- `stage3`: The zig compiler from your local source tree, with Debug optimization.\n\nThe stages here is not the same to the zig compiler's \"stage1\" \"stage2\" \"stage3\".\nWe use `stageN` here to describe the different build condition.\n\nThe build of `bootstrap` and `stage1` may take hours to complete. You also need enough RAM and SWAP (~1.5G per thread, ~18G for a 12 thread computer) to build `bootstrap`.\n\nUse `zigd \u003cstage\u003e` to invoke specific compiler:\n\n```sh\nzigd stage1 version\nzigd stage2 version\nzigd stage3 version\n```\n\nYou can also build specific stage of compiler by changing the argument for `zigd build`:\n\n```sh\nzigd build stage3\nzigd build stage3 stage2 # Specified order won't affect the build order\n```\n\n## LICENSE\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthislight%2Fzigd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthislight%2Fzigd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthislight%2Fzigd/lists"}