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

fix build on modern MacOS systems #59

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

barzamin
Copy link
Member

apple switched c++ stdlibs to support c++1z features, and deprecated the old one.
the ways that interacts with cmake are vast and unknowable. apparently they haven't
gotten around to fixing that yet, which affects libui's cmake-based build toolchain.

what this patch does is essentially just force the new stdlib on apple systems.
i don't think this will cause issues with old (ie, pre-Sierra) macos versions, but
perhaps further testing would be helpful.

at any rate, it fixes a problem that was basically blocking anyone on a modern
macos install from using libui-rs, which is nice.

fixes #38 :)

apple switched c++ stdlibs to support c++1z features, and deprecated the old one.
the ways that interacts with cmake are vast and unknowable. apparently they haven't
gotten around to fixing that yet, which affects libui's cmake-based build toolchain.

what this patch does is essentially just force the new stdlib on apple systems.
i don't think this will cause issues with old (ie, pre-Sierra) macos versions, but
perhaps further testing would be helpful.

at any rate, it fixes a problem that was basically blocking anyone on a modern
macos install from using libui-rs, which is nice.
Copy link
Collaborator

@NoraCodes NoraCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't test this on a Mac, as I don't have one or have access to one, but the change looks good to me and I understand conceptually why it solves the problem. Thanks for the patch.

@barzamin
Copy link
Member Author

@NoraCodes i did test it on a VM of Mojave :)

@NoraCodes
Copy link
Collaborator

Great! Let's merge it.

@NoraCodes NoraCodes merged commit e01e6c6 into rust-native-ui:master Jan 30, 2019
barzamin added a commit that referenced this pull request Feb 4, 2019
@muellermartin
Copy link

Thanks for this PR! Am I right that this is not included in the current release (0.3.0 from 2018-05-04)? When I use

iui = { git = "https://github.com/rust-native-ui/libui-rs", branch = "master" }

instead of

iui = "0.3"

the inital build issue is gone, otherwise the build fails as described in corresponding issues. Will there be a new release with this fix?

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.

error: failed to run custom build command for ui-sys v0.1.3
3 participants