When building rust-mozjs with debug symbols enabled, the underlying C++ library links against the debug Windows runtime (msvcrtd.lib) rather than the regular one (msvcrt.lib). Unfortunately, rustc always links against msvcrt.lib unconditionally:
. This makes it
impossible to build a debug-enabled version of rust-mozjs on Windows.
When building rust-mozjs with debug symbols enabled, the underlying C++ library links against the debug Windows runtime (
msvcrtd.lib) rather than the regular one (msvcrt.lib). Unfortunately, rustc always links againstmsvcrt.libunconditionally:rust/src/vendor/libc/src/windows.rs
Line 150 in da2ce22