Skip to content

Commit

Permalink
Fix pkgconfig_build.bzl for Windows build with Bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Jul 31, 2024
1 parent fb20967 commit ffe5b15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions foreign_cc/built_tools/pkgconfig_build.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def pkgconfig_tool(name, srcs, **kwargs):
args = [
"-f Makefile.vc",
"CFG=release",
"GLIB_PREFIX=\"$$EXT_BUILD_ROOT/external/glib_dev\"",
"GLIB_PREFIX=\"$$EXT_BUILD_ROOT/external/%s\"" % Label("@glib_dev").workspace_name,
],
out_binaries = ["pkg-config.exe"],
env = {"INCLUDE": "$$EXT_BUILD_ROOT/external/glib_src"},
env = {"INCLUDE": "$$EXT_BUILD_ROOT/external/%s" % Label("@glib_src").workspace_name},
out_static_libs = [],
out_shared_libs = [],
deps = [
Expand All @@ -156,7 +156,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 = Label("@rules_foreign_cc//toolchains:preinstalled_nmake_toolchain"),
tags = tags,
**kwargs
)
Expand Down

0 comments on commit ffe5b15

Please sign in to comment.