{"id":15101404,"url":"https://github.com/zag-research/zig-llvm","last_synced_at":"2026-02-07T05:02:16.066Z","repository":{"id":237272903,"uuid":"794177683","full_name":"Zag-Research/Zig-LLVM","owner":"Zag-Research","description":"Quick guide to compiling LLVM \u0026 Zig source files ","archived":false,"fork":false,"pushed_at":"2024-05-16T13:53:06.000Z","size":50544,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T00:27:08.598Z","etag":null,"topics":["compilation","llvm","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zag-Research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-30T15:51:21.000Z","updated_at":"2024-07-20T16:15:02.000Z","dependencies_parsed_at":"2024-05-16T15:07:15.541Z","dependency_job_id":null,"html_url":"https://github.com/Zag-Research/Zig-LLVM","commit_stats":null,"previous_names":["janbaig/zig-llvm","zag-research/zig-llvm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zag-Research%2FZig-LLVM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zag-Research%2FZig-LLVM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zag-Research%2FZig-LLVM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zag-Research%2FZig-LLVM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zag-Research","download_url":"https://codeload.github.com/Zag-Research/Zig-LLVM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242226889,"owners_count":20092875,"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":["compilation","llvm","zig"],"created_at":"2024-09-25T18:22:18.353Z","updated_at":"2026-02-07T05:02:13.979Z","avatar_url":"https://github.com/Zag-Research.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n#### Compiling\n\nThe `builder_test` folder contains simple functions to test the LLVM IR builder from within Zig.\nTo execute, you'll need to download LLVM from source and provide the necessary compiler flags\nExample of how to execute is shown below (might need to change path to LLVM headers and library files):\n```bash\n# Run from WSL\nzig build-exe main.zig -lc++ -I/usr/lib/llvm-14/include -L /usr/lib/llvm-14/lib -lLLVM-14\n```\n\nThe `link_test` folder contains simple functions to test linking LLVM IR with a zig file.\nTo execute:\n```bash\nclang -c add.ll -o add.o\nzig build-exe main.zig add.o -femit-bin=main \n./main.o\n```\n\nThe `ll_output_test` folder contains a simple .c and .zig file. In\norder to link the two together, see the README in that folder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzag-research%2Fzig-llvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzag-research%2Fzig-llvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzag-research%2Fzig-llvm/lists"}