Skip to content

fix pkgconfig on windows#1459

Merged
novas0x2a merged 1 commit intobazel-contrib:mainfrom
novas0x2a:fix-pkgconfig-windows
Feb 6, 2026
Merged

fix pkgconfig on windows#1459
novas0x2a merged 1 commit intobazel-contrib:mainfrom
novas0x2a:fix-pkgconfig-windows

Conversation

@novas0x2a
Copy link
Collaborator

@novas0x2a novas0x2a commented Feb 6, 2026

I don't think we have a CI build that accurately represents the failure here, but this appears to work locally for me with both:

  • build --enable_bzlmod --noenable_workspace //toolchains/private:pkgconfig_tool
  • build --noenable_bzlmod --enable_workspace //toolchains/private:pkgconfig_tool

Hopefully:

@novas0x2a novas0x2a merged commit aeb4b89 into bazel-contrib:main Feb 6, 2026
2 checks passed
@novas0x2a novas0x2a deleted the fix-pkgconfig-windows branch February 6, 2026 18:55
novas0x2a added a commit that referenced this pull request Feb 20, 2026
In #1459,
`extra_toolchain` was changed from a string to a Label. This was
necessary (it's no longer safe to pass labels as strings in the
post-bzlmod world) but it created a problem: the ability to do

```
cmake_variant(toolchain=select({"A": "footoolchain", "B": ""}))
```

Kind of worked before, and no longer does (since "" is not a valid
label). This change makes it so you can pass None instead of "" and it
will do roughly what "" did.
novas0x2a added a commit that referenced this pull request Feb 20, 2026
In #1459,
`extra_toolchain` was changed from a string to a Label. This was
necessary (it's no longer safe to pass labels as strings in the
post-bzlmod world) but it created a problem: the ability to do

```
cmake_variant(toolchain=select({"A": "footoolchain", "B": ""}))
```

Kind of worked before, and no longer does (since "" is not a valid
label). This change makes it so you can pass None instead of "" and it
will do roughly what "" did.
novas0x2a added a commit that referenced this pull request Feb 20, 2026
In #1459,
`extra_toolchain` was changed from a string to a Label. This was
necessary (it's no longer safe to pass labels as strings in the
post-bzlmod world) but it created a problem: the ability to do

```
cmake_variant(toolchain=select({"A": "footoolchain", "B": ""}))
```

kind of worked before, and no longer does (since "" is not a valid
label). This change makes it so you can pass None instead of "" and it
will do roughly what "" did.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants