You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Zig build mode should default to a setting in line with --compilation_mode such that --compilation_mode=fastbuild implies Debug, --compilation_mode=dbg implies Debug, --compilation_mode=opt implies ReleaseFast.
Unfortunately build_setting_default is not configurable, meaning we cannot select on the compilation mode to defined the default value for the mode flag. An alternative is to add an auto option, make that the default, and add logic to the settings rule to select the correct value.
An issue with this approach is that it breaks the config setting defined here. A workaroud would be to use config_setting_group to define a config setting that resolves to mode==debug or (mode==auto and compilation_mode==dbg) etc.
The text was updated successfully, but these errors were encountered:
Alternatively, if #37 becomes available with builtin Bazel support, and that allows for separate defaults for target and exec configurations, then the main use-case, i.e. separate defaults for targets vs. tools, would be solved.
The Zig build mode should default to a setting in line with
--compilation_mode
such that--compilation_mode=fastbuild
impliesDebug
,--compilation_mode=dbg
impliesDebug
,--compilation_mode=opt
impliesReleaseFast
.Unfortunately
build_setting_default
is not configurable, meaning we cannot select on the compilation mode to defined the default value for the mode flag. An alternative is to add anauto
option, make that the default, and add logic to thesettings
rule to select the correct value.An issue with this approach is that it breaks the config setting defined here. A workaroud would be to use
config_setting_group
to define a config setting that resolves tomode==debug or (mode==auto and compilation_mode==dbg)
etc.The text was updated successfully, but these errors were encountered: