From 9c4b694332a1af3510c9df3e3f6c37e79946206c Mon Sep 17 00:00:00 2001 From: Marc Redemske Date: Wed, 3 Jul 2024 23:50:08 +0200 Subject: [PATCH] fix(toolchains): properly pass `toolchain_type` --- lib/extensions.bzl | 2 +- lib/toolchains.bzl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/extensions.bzl b/lib/extensions.bzl index 6b552a7..86a9963 100644 --- a/lib/extensions.bzl +++ b/lib/extensions.bzl @@ -18,7 +18,7 @@ def _impl(ctx): register_platform_toolchains( name = name, assets = assets, - toolchain_type = "@bzlparty_tools//toolchains:%s_toolchain_type", + toolchain_type = "@bzlparty_tools//toolchains:%s_toolchain_type" % name, ) def load_files(**kwargs): diff --git a/lib/toolchains.bzl b/lib/toolchains.bzl index d9fbd07..3bddb2b 100644 --- a/lib/toolchains.bzl +++ b/lib/toolchains.bzl @@ -126,7 +126,7 @@ toolchain( name = "{name}_{platform}_toolchain", toolchain = "@{name}_{platform}//:{name}_binary_toolchain", exec_compatible_with = {compatible_with}, - toolchain_type = "@bzlparty_tools//toolchains:{name}_toolchain_type", + toolchain_type = "{toolchain_type}", visibility = ["//visibility:public"], ) """