Skip to content

i686-pc-windows-gnu executables depend on additional DLL #71061

Closed
@mati865

Description

@mati865

I tried this code:

fn main() {
    println!("Hello, world!");
}

I expected to see this happen: Get portable executable depending only on C:/Windows/System32 libraries.
Instead, this happened: Since nightly-2020-03-15 (most likely #67502) building with i686-pc-windows-gnu target results in executable that depends on libwinpthread-1.dll beside typical libraries.

Meta

rustc --version --verbose:

rustc 1.44.0-nightly (94d346360 2020-04-09)
binary: rustc
commit-hash: 94d346360da50f159e0dc777dc9bc3c5b6b51a00
commit-date: 2020-04-09
host: x86_64-pc-windows-gnu
release: 1.44.0-nightly
LLVM version: 9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions