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

Build target linking errors #19

Closed
WeaponMan opened this issue Jul 21, 2020 · 2 comments
Closed

Build target linking errors #19

WeaponMan opened this issue Jul 21, 2020 · 2 comments
Labels

Comments

@WeaponMan
Copy link

In order to build for gnu target you need to switch default-host to gnu target if you have msvc target as default.
My understanding the build.rs is build with default-host so if you build with cargo build --target=x86_64-pc-windows-gnu and have selected default-host x86_64-pc-windows-msvc it fails to link.

I think the checks for target must be runtime instead of compile time in order this to work.
(I just don't really know if there is another way to get cargo build --target to build build.rs with that selected target)

@nabijaczleweli
Copy link
Owner

How about cargo +stable-x86_64-pc-windows-gnu build?

@WeaponMan
Copy link
Author

Yeah, thats works. It saves time switching between default-hosts.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants