{"slug": "zigcc", "name": "zigcc", "category": "dev-libs", "category_name": "Libraries and frameworks", "description": "", "recommenders": 4, "commenters": 4, "warners": 0, "score": 3.376, "rising": -1.31, "first": "2025-11-17", "latest": "2026-06-14", "why": "It let's you target specific glibc versions. It's a pretty amazing C toolchain.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 5, "neutral": 0, "compare": 0, "warn": 0}, "spark": [1, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "It let's you target specific glibc versions. It's a pretty amazing C toolchain.", "kind": "", "icon": true, "domain": "andrewkelley.me", "github_repo": null, "official_url": "https://ziglang.org", "pricing": "", "aliases": ["zigcc", "zig cc", "Zig cc"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 776509313, "item_id": 48531832, "url": "https://news.ycombinator.com/item?id=48531832", "by": "dboon", "date": "2026-06-14", "stance": "recommend", "quote": "Zig cc is proof that this entire ecosystem is an embarrassment", "excerpt": "I am making Cargo for C. I have 3/4 of a working demo; the tool can build itself, including some non-trivial dependencies which I've ported to build natively with the tool (instead of wrapping their Make or CMake or whatever). The pitch: It's insane that we have to pull in Python or Lua to build C code. CMake is an abomination against god that has become usable in spite of itself. Zig cc is proof that this entire eco", "context": "", "use_case": "", "switched_from": "", "story": "Ask HN: What are you working on? (June 2026)"}, {"id": 746188946, "item_id": 46636809, "url": "https://news.ycombinator.com/item?id=46636809", "by": "archargelod", "date": "2026-01-15", "stance": "recommend", "quote": "you can use clang or zigcc compilers instead", "excerpt": "It's usually code compiled with Mingw that gets AV false-positives in Nim. But, indeed, you can use clang or zigcc compilers instead. Nim has good support for Clang, so it works by just switching a single flag: `nim c --cc:clang main.nim` For zigcc - there is a wrapper package you can install with nimble: `nimble install zigcc` Then you can use it with: `nim c --cc:clang --clang.exe=zigcc --linker.exe=zigcc main.nim`", "context": "", "use_case": "", "switched_from": "", "story": "Ask HN: What did you find out or explore today?"}, {"id": 743109584, "item_id": 46444349, "url": "https://news.ycombinator.com/item?id=46444349", "by": "yx827ha", "date": "2025-12-31", "stance": "recommend", "quote": "It let's you target specific glibc versions. It's a pretty amazing C toolchain.", "excerpt": "Check out `zig cc`. It let's you target specific glibc versions. It's a pretty amazing C toolchain. https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html", "context": "", "use_case": "cross-compiling against older glibc", "switched_from": "", "story": "Win32 is the stable Linux ABI"}, {"id": 740029040, "item_id": 46251815, "url": "https://news.ycombinator.com/item?id=46251815", "by": "archargelod", "date": "2025-12-12", "stance": "recommend", "quote": "use zigcc[1] for easy Nim cross-compilation", "excerpt": "If a script is simple - I use posix sh + awk, sed, etc. But if a script I write needs to use arrays, sets, hashtable or processes many files - I use Nim[0]. It's a compiled systems-programming language that feels like a scripting language: - Nim is easy to write and reads almost like a pseudocode. - Nim is very portable language, runs almost anywhere C can run (both compiler and programs). - `nim r script.nim` to com", "context": "", "use_case": "cross-compilation", "switched_from": "", "story": "Using Python for Scripting"}, {"id": 735253008, "item_id": 45953313, "url": "https://news.ycombinator.com/item?id=45953313", "by": "tamnd", "date": "2025-11-17", "stance": "recommend", "quote": "With Zig CC I could build binaries for different platforms and architectures without using Docker.", "excerpt": "My use cases similar to this https://blog.afoolishmanifesto.com/posts/golang-zig-cross-compilation/ need to bundle a lot of C libraries, some using dynamic linking and some using static linking, and I need to deploy them on different operating systems, including some that are difficult to work with like RHEL. Right now the builds are slow because I use a separate Dockerfile for each platform and then copy the binary ", "context": "", "use_case": "cross-platform C library builds", "switched_from": "Docker", "story": "Open-source Zig book"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["cross-compiling against older glibc", "cross-compilation", "cross-platform c library builds"], "compared": [{"slug": "docker", "name": "Docker", "co": 1, "switched_from": 1, "switched_to": 0}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=48528779", "title": "Ask HN: What are you working on? (June 2026)", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46619464", "title": "Ask HN: What did you find out or explore today?", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46433035", "title": "Win32 is the stable Linux ABI", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46189962", "title": "Using Python for Scripting", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=45947810", "title": "Open-source Zig book", "mentions": 1}], "sentiment_by_month": {"2025-11": {"recommend": 1}, "2025-12": {"recommend": 2}, "2026-01": {"recommend": 1}, "2026-02": {}, "2026-03": {}, "2026-04": {}, "2026-05": {}, "2026-06": {"recommend": 1}, "2026-07": {}, "2026-08": {}, "2026-09": {}, "2026-10": {}}, "quotes": [{"id": 776509313, "item_id": 48531832, "url": "https://news.ycombinator.com/item?id=48531832", "by": "dboon", "date": "2026-06-14", "stance": "recommend", "quote": "Zig cc is proof that this entire ecosystem is an embarrassment", "excerpt": "I am making Cargo for C. I have 3/4 of a working demo; the tool can build itself, including some non-trivial dependencies which I've ported to build natively with the tool (instead of wrapping their Make or CMake or whatever). The pitch: It's insane that we have to pull in Python or Lua to build C code. CMake is an abomination against god that has become usable in spite of itself. Zig cc is proof that this entire eco", "context": "", "use_case": "", "switched_from": "", "story": "Ask HN: What are you working on? (June 2026)"}, {"id": 746188946, "item_id": 46636809, "url": "https://news.ycombinator.com/item?id=46636809", "by": "archargelod", "date": "2026-01-15", "stance": "recommend", "quote": "you can use clang or zigcc compilers instead", "excerpt": "It's usually code compiled with Mingw that gets AV false-positives in Nim. But, indeed, you can use clang or zigcc compilers instead. Nim has good support for Clang, so it works by just switching a single flag: `nim c --cc:clang main.nim` For zigcc - there is a wrapper package you can install with nimble: `nimble install zigcc` Then you can use it with: `nim c --cc:clang --clang.exe=zigcc --linker.exe=zigcc main.nim`", "context": "", "use_case": "", "switched_from": "", "story": "Ask HN: What did you find out or explore today?"}, {"id": 743109584, "item_id": 46444349, "url": "https://news.ycombinator.com/item?id=46444349", "by": "yx827ha", "date": "2025-12-31", "stance": "recommend", "quote": "It let's you target specific glibc versions. It's a pretty amazing C toolchain.", "excerpt": "Check out `zig cc`. It let's you target specific glibc versions. It's a pretty amazing C toolchain. https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html", "context": "", "use_case": "cross-compiling against older glibc", "switched_from": "", "story": "Win32 is the stable Linux ABI"}, {"id": 740029040, "item_id": 46251815, "url": "https://news.ycombinator.com/item?id=46251815", "by": "archargelod", "date": "2025-12-12", "stance": "recommend", "quote": "use zigcc[1] for easy Nim cross-compilation", "excerpt": "If a script is simple - I use posix sh + awk, sed, etc. But if a script I write needs to use arrays, sets, hashtable or processes many files - I use Nim[0]. It's a compiled systems-programming language that feels like a scripting language: - Nim is easy to write and reads almost like a pseudocode. - Nim is very portable language, runs almost anywhere C can run (both compiler and programs). - `nim r script.nim` to com", "context": "", "use_case": "cross-compilation", "switched_from": "", "story": "Using Python for Scripting"}, {"id": 735253008, "item_id": 45953313, "url": "https://news.ycombinator.com/item?id=45953313", "by": "tamnd", "date": "2025-11-17", "stance": "recommend", "quote": "With Zig CC I could build binaries for different platforms and architectures without using Docker.", "excerpt": "My use cases similar to this https://blog.afoolishmanifesto.com/posts/golang-zig-cross-compilation/ need to bundle a lot of C libraries, some using dynamic linking and some using static linking, and I need to deploy them on different operating systems, including some that are difficult to work with like RHEL. Right now the builds are slow because I use a separate Dockerfile for each platform and then copy the binary ", "context": "", "use_case": "cross-platform C library builds", "switched_from": "Docker", "story": "Open-source Zig book"}]}