-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚩 Lift flags to configurations (#240)
Previously we passed Nix-specific configuration globally to Bazel's `action_env`. This caused every change in the Nix configs to invalidate the entire build graph. The new setup no longer influences any `rules_cc` invocations and selectively injects flags only into the transitioned `ll_toolchains` when they're actually needed. This maximizes the potential for cache reuse after changing the nix configuration and is overall a more modular and idiomatic approach. The new flags may be manually overridden via e.g. `--@rules_ll//ll:LL_CFLAGS=x:y:z`. This change also introduces `*_string_flags` attributes for `ll_*` rules which may be used to pass in Bazel-Skylib's `string_flag` targets to `ll_*` targets. These new flags follow the common pattern of supporting multiple arguments, separated by colons.
- Loading branch information
1 parent
df72102
commit 5ac0546
Showing
22 changed files
with
307 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ backend | |
buildable | ||
bundler | ||
eomii | ||
glibc | ||
hermeticity | ||
intrinsics | ||
lockfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.