Link flag unexpectedly detected as /defaultlib:msvcrt
on debug build, expecting /defaultlib:msvcrtd
#536
-
Not sure if this is an issue or if this is expected behavior. Thought that discussion would be a good place to start. My setup uses When I build with
After digging into the build configs generated by
Note the In contrast, corrosion/cmake/FindRust.cmake Line 192 in 64289b1 where the However, the corrosion/cmake/FindRust.cmake Lines 181 to 182 in 64289b1 Not sure if this is the intended behavior? I think it would make sense to do similar substitutions for the link flags. Though I'm not familiar with cmake scripting at all, something to note would be that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for the detailed report!
No, that's not intended behavior, we should replace it too. We only need to replace the variant that |
Beta Was this translation helpful? Give feedback.
Thanks for the detailed report!
No, that's not intended behavior, we should replace it too. We only need to replace the variant that
rustc
uses, which is the lowercase/defaultlib:xxx
.This is a quick fix, I can do it later today.