Skip to content

Conversation

@minerscale
Copy link

When trying to compile for windows on linux, I was encountering a problem about a missing library, turns out I needed a different name for the static library. Note that in a build.rs cfg(target-os) will actually be the host os, because the build script is running on the host os, so to properly detect the case of cross compilation, I have used the cargo environment variable CARGO_CFG_TARGET_OS.

Additionally, I was getting some spurious warnings out of bindgen about unnecessary transmutes. I think this will be fixed in a future version of bindgen, but for now I have simply silenced the warning.

Also I updated bindgen to the latest version because I think that's a chore which is probably good to do. If not, I will revert the change if need be, but everything seems to work on the newer version!

Thanks,
Aaron.

…indgen and suppress spurious warning generated by bindgen
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