ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
35.12k stars 2.56k forks source link

Tracking issue: Building linux kernel #21443

Open vesim987 opened 2 months ago

vesim987 commented 2 months ago

This is a list of missing features required to build linux kernel:

zig cc:

zig objcopy:

There is most likely more hiding behind issues mentioned above.

In the meantime zig clang can be used as CC and zig cc can be used as HOSTCC, the biggest issue right now is it the requirement of llvm-objcopy/objcopy:

make CC="zig clang" HOSTCC="zig cc -lc" AR="zig ar" OBJCOPY="llvm-objcopy"
nektro commented 2 months ago

Related: https://github.com/orgs/ziglang/projects/5