Skip to content
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

Don't treat -framework as a library to link to, treat it as a composite arg #455

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

russelltg
Copy link
Contributor

Because CMake de-duplicates libraries, we had a situation where cargo was reporting -framework A -framework B as its native static libs, this ended up on the link commandline as -framework A B, which is is not correct (the -framework flag is required).

CMake deals with this by combining them, and they will be properly passes as separate flags on the final link commandline.

This fixes our internal app which uses corrosion, so is at least moderately tested

Questions

  • do you prefer some other control flow here?

@jschwe jschwe force-pushed the fix_framework_linkage branch from 3851d39 to 21ad90a Compare November 15, 2023 20:19
@jschwe jschwe enabled auto-merge (rebase) November 15, 2023 20:20
@jschwe jschwe merged commit 42270de into corrosion-rs:master Nov 15, 2023
36 checks passed
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.

2 participants