-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPACKAGE
More file actions
27 lines (24 loc) · 1.1 KB
/
Copy pathPACKAGE
File metadata and controls
27 lines (24 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
load("@prelude//cfg/modifier:cfg_constructor.bzl",
"cfg_constructor_pre_constraint_analysis",
"cfg_constructor_post_constraint_analysis")
load("@prelude//cfg/modifier:set_cfg_modifiers.bzl", "set_cfg_modifiers")
load("//use:modifier_aliases.bzl", "BUCKOS_ALIASES")
load("//config:local_modifiers.bzl", "LOCAL_MODIFIERS")
package(
visibility = ["PUBLIC"],
)
set_cfg_constructor(
stage0 = cfg_constructor_pre_constraint_analysis,
stage1 = cfg_constructor_post_constraint_analysis,
key = "buckos.cfg",
aliases = BUCKOS_ALIASES,
extra_data = struct(),
) if get_cell_name() == "" else None
# Apply local USE flag modifiers (generated by buckos installer/CLI).
# These are loaded from config/local_modifiers.bzl (gitignored).
# Copy config/local_modifiers.bzl.default to config/local_modifiers.bzl
# to get started, or run: buckos use profile <profile>
#
# Per-package overrides use PACKAGE files in package directories
# (also gitignored, generated by: buckos use package <name> [flags]).
set_cfg_modifiers(cfg_modifiers = LOCAL_MODIFIERS) if LOCAL_MODIFIERS and get_cell_name() == "" else None