`zig cc`: a Powerful Drop-In Replacement for GCC/Clang - Andrew Kelley - eviltoast

Through witchcraft and dark magic, Zig contains a C standard library and cross compiler for every architecture in 45 megabytes.

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    No, here

    Note that there would still be an LLVM backend for outputting .bc files (#13265), but the Zig compiler would lack the capability to compile .bc files into object files. LLVM or Clang would need to be installed and invoked separately for that use case.

    You’d just need LLVM separately but Zig would still be able to make files that LLVM can handle.