Skip to content

Windows binary includes lots of C header metadata #14144

Closed
@lifthrasiir

Description

@lifthrasiir

Not sure how did they end up there, but even with the simple code like fn main() {} and aggressive compilation options like -Z lto --opt-level=3 the current master gives over 18 MB of binary, of which 16 MB consists of string constants seemingly derived from C headers (e.g. "ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET __MSABI_LONG(8464)\x00\x01\xca\n", from mingw-w64 winerror.h).

Last checked with rust nightly 0550b79 2014-05-12 00:31:52 -0700.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: WindowsP-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions