Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Move toolchain registration to flake module #260

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module(
compatibility_level = 0,
)

register_toolchains("@rules_ll//ll:ll_toolchain")

# Platform support.
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.0.17")
Expand All @@ -14,7 +12,10 @@ bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "bazel_skylib", version = "1.7.1")

# Documentation.
bazel_dep(name = "stardoc", version = "0.7.2", dev_dependency = True)
#
# TODO(aaronmondal): This should be a dev_dependency, but that currently breaks
# the examples.
bazel_dep(name = "stardoc", version = "0.7.2", dev_dependency = False)

# TODO(aaronmondal): We don't actually use this. Fix LRE upstream to make this
# import optional.
Expand Down
2 changes: 2 additions & 0 deletions modules/rules_ll.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ let
# Add try-import %%workspace%%/ll.bazelrc to your .bazelrc to
# include these flags when running Bazel in a nix environment.

build --extra_toolchains=@rules_ll//ll:ll_toolchain

${lib.concatLines processedActionEnvs}' >$out
'';
in
Expand Down