Skip to content

[BUG] Remove CRT dependency on Windows build #1874

@alexchandel

Description

@alexchandel

Checks

  • I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

The inspiring project rg has no dependencies on any of Microsoft's obnoxious redistributable components, even in its MSVC release:

Image

However fd's Windows release still depends on the VC v14 redists:

Image

This means fd errors at launch on machines without this redist installed (and sadly, there are many, many of these still in the wild in industry). But this DLL dependency is not necessary and unhelpful on balance. The only functions used are the basic mem functions:

Image

and some low-level CRT functions unrelated to fd's core functionality that can be statically linked with no consequence, e.g.:

Image

Describe what you expected to happen:

fd should statically link the UCRT for better performance and portability.

What version of fd are you using?

fd 10.3.0

Which operating system / distribution are you on?

Windows 11 (and several other older Windows)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions