Skip to content

Link MSVC runtime library statically#427

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:msvc_static
Dec 22, 2025
Merged

Link MSVC runtime library statically#427
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:msvc_static

Conversation

@staticlibs
Copy link
Collaborator

This change makes all CMake targets to use -MT/-MTd compilation flags for Windows MSVC builds. This way the MSVC runtime library is linked statically and the workaround for VS2019 added in duckdb/duckdb#17991 is no longer necessary.

extension-ci-tools PR: duckdb/extension-ci-tools#276

Ref: duckdblabs/duckdb-internal#2036

This change makes all CMake targets to use `-MT`/`-MTd` compilation
flags for Windows MSVC builds. This way the MSVC runtime library is
linked statically and the workaround for VS2019 added in
duckdb/duckdb#17991 is no longer necessary.

`extension-ci-tools` PR: duckdb/extension-ci-tools#276

Ref: duckdblabs/duckdb-internal#2036
@staticlibs staticlibs merged commit 4de983c into duckdb:main Dec 22, 2025
12 checks passed
@staticlibs staticlibs deleted the msvc_static branch December 22, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant