Skip to content

Emit target_os = ... cfgs on framework dependencies #618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 21, 2024

Conversation

madsmtm
Copy link
Owner

@madsmtm madsmtm commented May 21, 2024

Framework crates like objc2-app-kit cannot be used on e.g. tvOS, and neither can the functionality that depend on types from that crate. This is also problematic for GNUStep.

This is similar to (and lays some of the groundwork for) #433, but distinct in that the cfgs are only emitted when a dependency is required, not for all items.

@madsmtm madsmtm added bug Something isn't working A-framework Affects the framework crates and the translator for them labels May 21, 2024
@madsmtm madsmtm force-pushed the dependency-target-cfgs branch 3 times, most recently from 4ad1bff to 10a18b5 Compare May 21, 2024 00:39
@madsmtm madsmtm force-pushed the dependency-target-cfgs branch from 728c9f8 to 3bdc9bb Compare May 21, 2024 03:20
@madsmtm madsmtm merged commit 8d20b9b into master May 21, 2024
47 checks passed
@madsmtm madsmtm deleted the dependency-target-cfgs branch May 21, 2024 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant