generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed as not planned
Description
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.
Metadata
Metadata
Assignees
Labels
No labels