How to set std_options in zigar? #740
-
|
I have the following code in my zigar entry zig file: pub const std_options: std.Options = .{
.log_level = .info,
};In a normal zig compilation, this should override the log_level to always be /// Stdlib-wide options that can be overridden by the root file.
pub const options: Options = if (@hasDecl(root, "std_options")) root.std_options else .{};But the behavior continues to be that of me not having defined an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Good catch. It's not something I considered. |
Beta Was this translation helpful? Give feedback.
Good catch. It's not something I considered.
stub-napi.zigorstub-wasm.zigin zigar-compiler/zig serve as the root. They should exposestd_optionsfrom the module if it's present. I've opened an issue.