Skip to content

rustc always links against non-debug Windows runtime #39016

Open
@jdm

Description

@jdm

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:

#[link(name = "msvcrt")]
. This makes it impossible to build a debug-enabled version of rust-mozjs on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.O-windows-msvcToolchain: MSVC, Operating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions