ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/buck/mode/BUILD
Austin Seipp 5547e28cea buck: repository prep work
This lays the basic groundwork to invoke buck2 in a way that barely works and
builds nothing.

The `jj.bzl` code will be used in some upcoming diffs to add `BUCK` files to the
various crates.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2024-09-04 14:27:39 -05:00

18 lines
334 B
Text

MODES = [ 'debug', 'release' ]
constraint_setting(name = 'build-mode')
[
constraint_value(
name = f'build-mode-{name}',
constraint_setting = ':build-mode'
) for name in MODES
]
[
config_setting(
name = name,
constraint_values = [ f'mode//:build-mode-{name}' ]
) for name in MODES
]