-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.buckconfig
More file actions
80 lines (66 loc) · 2.54 KB
/
.buckconfig
File metadata and controls
80 lines (66 loc) · 2.54 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[cells]
root = .
prelude = prelude
toolchains = toolchains
third-party = third-party
none = none
[cell_aliases]
config = prelude
ovr_config = prelude
fbcode = none
fbsource = none
fbcode_macros = none
buck = none
[external_cells]
prelude = bundled
[parser]
target_platform_detector_spec = target:root//kernel/...->toolchains//:uefi \
target:root//...->prelude//platforms:default \
target:prelude//...->prelude//platforms:default \
target:toolchains//...->prelude//platforms:default
[build]
execution_platforms = prelude//platforms:default
[buck2]
platforms = prelude//platforms:default, toolchains//:uefi
constraints = prelude//cpu/constraints:x86_64, prelude//os/constraints:none
file_watcher = watchman
# 'buck2 test' should also build anything matching given target patterns
test_builds_targets = true
# use sha256 since everything supports it. XXX FIXME (aseipp): blake3?
digest_algorithms = SHA256
# These options are used to configure a "graph sketch" that roughly keeps track
# of the size of the underlying graphs that buck2 uses. turn these on; they're
# emitted as part of the build reports.
log_total_configured_graph_sketch = true
log_total_configured_graph_unconfigured_sketch = true
log_configured_graph_unconfigured_sketch = true
# defers writes to the end of actions to help improve performance
defer_write_actions = true
# deferred materialization requires that cache outputs never expire. if they do,
# a command might fail if it expects a hit on an object that was supposed to be
# an input. in that case, the buck2d daemon needs to restart to 'purge' its
# knowledge of that object. this enables that.
restarter = true
# enable checking the peak memory in the interpreter, and also set a byte limit
# for the interpreter. this is useful for catching runaway memory usage in BUILD
# files just in case people start going crazy with them.
check_starlark_peak_memory = true
# also, enforce a max callstack size to prevent ridiculous stack sizes and
# put a limit on how deep/abstract things can get.
starlark_max_callstack_size = 50
# default limit is 5MiB = 5 * 1024 * 1024 = 5242880 bytes. this is used by
# starlark_memory_limit() by default if no limit is specified.
default_starlark_peak_memory = 5242880
[buck2_resource_control]
status = if_available
enable_suspension = true
[project]
# things that should not be scanned by buck2 for file changes. if you notice
# something strange is being scanned, it might be worth adding here.
ignore = \
.jj, \
.git, \
.direnv, \
.watchman-cookie**, \
.gdb_history**, \
**.bck