KEMBAR78
Forward `link` macro for `raw-dylib` support by kennykerr · Pull Request #3670 · microsoft/windows-rs · GitHub
Skip to content

Conversation

@kennykerr
Copy link
Collaborator

The windows-targets crate behaves exactly like the newer windows-link crate when windows_raw_dylib is defined. This update just forwards the implementation rather than duplicating the implementation to avoid having to maintain two copies of this tricky code. This shouldn't have much impact in practice since the windows_raw_dylib is rarely used.

@kennykerr kennykerr merged commit a77a382 into master Jul 21, 2025
29 checks passed
@kennykerr kennykerr deleted the windows-target-link branch July 21, 2025 17:48
facebook-github-bot pushed a commit to facebookincubator/reindeer that referenced this pull request Aug 25, 2025
Summary:
I need this for the `windows-targets` crate. Version 0.53.3 in microsoft/windows-rs#3670 introduced the following conditional dependency:

```lang=toml
[target.'cfg(windows_raw_dylib)'.dependencies]
windows-link = { version = "0.1.3", default-features = false }
```

If a project were to use a fixup like this:

```lang=toml
# fixups/windows-targets/fixups.toml

cfgs = ["windows_raw_dylib"]
```

then Reindeer needs to know that the `windows-link` dependency applies. Previously, the `cfg(…)` predicate in conditional dependencies was only evaluated based on the cfgs of the platform according to reindeer.toml.

Reviewed By: diliop

Differential Revision: D80892198

fbshipit-source-id: a0567e99fb97fd8f3cb3fce21334743aacc75381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant