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

Use the shared_library dependency only on required platforms #1108

Merged
merged 4 commits into from
Mar 3, 2019

Conversation

iceiix
Copy link
Contributor

@iceiix iceiix commented Mar 2, 2019

shared_library was added in #403, but it is only used in src/api/caca/ffi.rs.

The caca backend module is conditionally-compiled to only certain platforms, so this pull request conditionally compiles the dependency as well, to the same set of target_os's.

This change saves some compilation time (but my specific use case is compiling glutin for the wasm32-unknown-unknown target, where shared_library isn't available)

@goddessfreya
Copy link
Contributor

Please make this compile. lazy_static is also used in the egl backend w/ android.

https://github.com/tomaka/glutin/blob/23b3b101e554e521f38c1179f90d3d2f278b857c/src/api/egl/mod.rs#L1

@iceiix
Copy link
Contributor Author

iceiix commented Mar 3, 2019

Fixing Android, next to fix is merge conflicts...

@goddessfreya goddessfreya merged commit af42114 into rust-windowing:master Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants