-
Notifications
You must be signed in to change notification settings - Fork 62
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
Building for Windows (x86_64-pc-windows-msvc) with opt-level="s" causes link errors #691
Comments
Opened a PR that fixes this issue: #692 |
Hello! We just released aws-lc-rs v1.12.3 which addresses the problem reported here. This issue will now be resolved. If you continue to experience problems after upgrading, feel free to reopen this issue or create a new one. Thanks for the report and for helping us improve our library! |
Awesome, great news!!
nevermind, false positive on my end |
Problem:
I am building a rust application that utilizes
aws-lc-rs
andtonic
in Windows.My application is set to compile with static crt.
I tried to optimize the binary size by changing opt-size to "s", but received this link error:
I was able to reproduce it by building
aws-lc-rs
withopt-level="s"
and envRUSTFLAGS="-C target-feature=+crt-static"
.Relevant details
AWS-LC for Rust versions or commit: current master (5af71cc)
I suspect the root cause relies in this logic that chooses the build type based on the opt-level. In MSVC, this directly affects the chosen C runtime, which probably causes the link error above.
The text was updated successfully, but these errors were encountered: