forked from mirrors/jj
5547e28cea
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>
18 lines
334 B
Text
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
|
|
]
|