-
Notifications
You must be signed in to change notification settings - Fork 461
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
bug: Build::is_flag_supported /std:c++17
returns false on 1.2.1 ->1.2.5 transition (on x86_64-pc-windows-msvc)
#1324
Comments
Hi! We've also managed to reproduce this when running the build script for I don't have a Windows computer anymore, so I can't reproduce this locally, but let me know if there's anything else I can do to help! |
This reproduces with cc 1.2.5, not with 1.2.4, which bisects the bug down to: #1322 |
I think this was caused by #1322 which removed the It complains about msvcrt.lib not being found. Either we need to supply the lib path or else do something like: cmd.args(["/link", "/entry:main"]); To avoid depending on the C runtime libraries. |
This is suppossedly a bug of https://docs.rs/cc/1.2.5/cc/struct.Build.html#method.is_flag_supported
on x86_64-pc-windows-msvc.
After applying diff near/cargo-near@4a4a772
, running build script in https://github.com/brson/wasm-opt-rs/blob/8854bd8a58d7393c7bacd950884aea521ce8e19f/components/wasm-opt-sys/build.rs#L365
fails https://github.com/near/cargo-near/actions/runs/12417889777/job/34669855813
Pinning
cc
to 1.2.1 in near/cargo-near#282 helps (build succeeds on the identical image)The text was updated successfully, but these errors were encountered: