mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
Introduce `zig_option` and `zig_options` rules to generate the bazel equivalent of option modules plugged on bazel flags. On `string` flags, if the flag has a `allowed_values`, the `string` is converted into a `enum` in zig code. Also, port platforms to this and remove the ugly `defines` hack to comptime test for platforms enablement. In the process, port `arocc` to the `zig_options`.
1 line
21 B
1 line
21 B