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

  • SFGrenade@feddit.de
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    amazingly i read recently that zig wants to cut out llvm in the future, which is the reason it can compile c/c++

    • etewar@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      I read that as well and Andrew explained that although he wants to do that, it won’t happen immediately. There are large projects that rely on this feature and he asked for their input on this topic.

      Another thing is that proposed change is to remove clang from the zig distribution. It would still be possible to depend on a zig package that provides an interface to seamlessly compile with system clang.