mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-28 08:43:51 +00:00
8386b9d32b
While build settings allow for much cleaner flag and setting definitions than `--define`, they have the major drawback that rules need to provide dedicated support for them, which isn't the case for native and most community-maintained rules. This change attempts to bridge this gap by optionally exposing the value of the common build setting types as Make variables to rules that depend on them via the `toolchains` attribute: If the new `make_variable` attribute is set, the value of the flag or setting is available as a Make variable with that. Consistency with pre-defined Make variables is enforced by limiting the character set for `make_variable` values to `[A-Z0-9_]`. The new attribute is also only added to int- and string-valued build settings as the other types lack a canonical stringification. Co-authored-by: Xùdōng Yáng <wyverald@gmail.com> |
||
---|---|---|
.. | ||
private | ||
analysis_test_doc.md | ||
BUILD | ||
build_test_doc.md | ||
bzl_library.md | ||
collections_doc.md | ||
common_settings_doc.md | ||
copy_directory_doc.md | ||
copy_file_doc.md | ||
dicts_doc.md | ||
diff_test_doc.md | ||
expand_template_doc.md | ||
maintainers_guide.md | ||
native_binary_doc.md | ||
new_sets_doc.md | ||
partial_doc.md | ||
paths_doc.md | ||
run_binary_doc.md | ||
select_file_doc.md | ||
selects_doc.md | ||
shell_doc.md | ||
structs_doc.md | ||
subpackages_doc.md | ||
types_doc.md | ||
unittest_doc.md | ||
versions_doc.md | ||
write_file_doc.md |