Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This fix error message like this in case of bzlmod usage:
invalid registered toolchain '@rules_foreign_cc//toolchains:preinstalled_nmake_toolchain': No repository visible as '@rules_foreign_cc' from main repository
  • Loading branch information
dmitry-j-mikhin committed Aug 28, 2024
1 parent 24e1bcf commit b6dbaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foreign_cc/built_tools/pkgconfig_build.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def pkgconfig_tool(name, srcs, **kwargs):
"@platforms//os:windows": "cp release/x64/pkg-config.exe $$INSTALLDIR$$/bin",
"//conditions:default": "",
}),
toolchain = "@rules_foreign_cc//toolchains:preinstalled_nmake_toolchain",
toolchain = str(Label("//toolchains:preinstalled_nmake_toolchain")),
tags = tags,
**kwargs
)
Expand Down

0 comments on commit b6dbaa5

Please sign in to comment.