Skip to content
Open
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
4 changes: 2 additions & 2 deletions toolchain/extensions/llvm.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def _constraint_dict(tags, name):

def _llvm_impl_(module_ctx):
for mod in module_ctx.modules:
if not mod.is_root:
fail("Only the root module can use the 'llvm' extension")
toolchain_names = []
for toolchain_attr in mod.tags.toolchain:
if not mod.is_root:
fail("Only the root module can use the 'llvm.toolchain()' tag")
name = toolchain_attr.name
toolchain_names.append(name)
attrs = {
Expand Down