Closed CallistoM closed 4 months ago
As far as I know, the standard prelude doesn't actually support compiling zig. The rules you're seeing there are only for using the zig toolchain to compile C/C++, not actually for compiling zig
@JakobDegen Yes I figured as much. Zig toolchain to compile C/C++ only works for Linux since zig\defs.bzl only calls linux shell commands.
I was wondering if there is more documentation on how to compile Zig projects, I tried the following, which does not result in an error but I am not able to use it in the project itself.
toolchains\BUCK
app\BUCK
When I use cxx_binary it does compile. Is it even possible to compile Zig? In prelude\decls\cxx_rules.bzl I do see cxx_binary being assigned and cxx_zig is not defined anywhere.
Thanks!