Skip to content

Commit e9a2e6f

Browse files
committed
docs
1 parent faaa901 commit e9a2e6f

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

docs/rules.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zig/private/settings.bzl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ ATTRS = {
2828
mandatory = True,
2929
),
3030
"zigopt": attr.label(
31-
doc = "Custom Zig compile options to add to all Zig compile action.",
31+
doc = """
32+
Additional list of flags passed to the zig compiler for all Zig compile actions.
33+
34+
The flags specified by this setting do not override those specified via the `zigopts` attribute of `zig_*` rules.
35+
Instead, they are prepended to the command line before module specific flags.
36+
37+
This is an advanced feature that can conflict with attributes, build settings, and other flags defined by the toolchain itself.
38+
Use this at your own risk of hitting undefined behaviors.
39+
""",
3240
mandatory = True,
3341
),
3442
}

zig/private/zig_configure.bzl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,15 @@ def _make_attrs(*, executable):
174174
values = THREADED_VALUES,
175175
),
176176
"zigopt": attr.string_list(
177-
doc = "Custom Zig compile options to add to all Zig compile actions.",
177+
doc = """
178+
Additional list of flags passed to the zig compiler for all Zig compile actions.
179+
180+
The flags specified by this setting do not override those specified via the `zigopts` attribute of `zig_*` rules.
181+
Instead, they are prepended to the command line before module specific flags.
182+
183+
This is an advanced feature that can conflict with attributes, build settings, and other flags defined by the toolchain itself.
184+
Use this at your own risk of hitting undefined behaviors.
185+
""",
178186
mandatory = False,
179187
),
180188
"_allowlist_function_transition": attr.label(

0 commit comments

Comments
 (0)