-
Notifications
You must be signed in to change notification settings - Fork 10
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
Incompatible linking modifiers +bundle
and +whole-archive
#7
Comments
+bundle
and +whole-archive
+bundle
and +whole-archive
Interesting. I cannot reproduce it on Ubuntu 22.04 LTS.
I'll have to quickly setup docker / a VM to see what's up with this. |
It seems that my project setup was a bit messed up (I'm still a rust newby). I had a Sorry to have bothered you with this issue. |
Oh, that could explain things. A resource can only be applied to a binary, not a library.
No problem. |
rustc version: rustc 1.66.1 (90743e729 2023-01-10)
winresource version: 0.1.14
I get the following error when I cross compile from Debian 11:
"error: the linking modifiers
+bundle
and+whole-archive
are not compatible with each other when generating rlibs"Changing
winresource/lib.rs
Line 650 in a401471
resolves this issue. But i don't know if this breaks builds with previous rustc versions...
Example
build.rs
:The text was updated successfully, but these errors were encountered: