Skip to content

Figure out how to get static linkage for MSVCRT #660

Description

@brson

In order to get the MSI installers working we need to build with the MSVC toolchain and link statically to the CRT.

@alexcrichton without an upstream solution how can we solve this the hard way? I'm thinking something like:

  • Modify gcc-rs to interpret some environment variable to mean pass /MT, in a fork if necessary
  • Build our own i686-pc-windows-msvc toolchain while setting that environment variable
  • Use that toolchain to build rustup, while setting the environment variable

cc #635 (comment)
cc rust-lang/rfcs#1684
cc @Boddlnagg @retep998

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions