Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Link MSVC runtime library statically#130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
staticlibs wants to merge1 commit intoduckdb:main
base:main
Choose a base branch
Loading
fromstaticlibs:msvc_static

Conversation

@staticlibs
Copy link

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 described induckdb/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` compilationflags for Windows MSVC builds. This way the MSVC runtime library islinked statically and the workaround for VS2019 described induckdb/duckdb#17991 is no longer necessary.`extension-ci-tools` PR:duckdb/extension-ci-tools#276Ref:duckdblabs/duckdb-internal#2036
@staticlibsstaticlibs marked this pull request as draftOctober 17, 2025 17:24
@staticlibs
Copy link
Author

The Python build setup is complex, it is not clear that this CMake flag covers everything.@evertlammerts
please take a look at your convenience.

The PR is only intended to be merged after theextension-ci-tools PR linked above it merged, so moving it to draft.

@paultiq
Copy link
Contributor

There's a nuanced discussion of statically linking c++ extensions here, the key point is ensuring the UCRT remains dynamically linked, which I don't see in this PR:https://discuss.python.org/t/planning-for-an-msvc-abi-break/65102/21

See Matplotlib, a static c++ runtime but dynamic ucrt:https://github.com/matplotlib/matplotlib/pull/28687/files

@staticlibs
Copy link
Author

@paultiq

Thanks for the pointers! Just currently there are no plans to have VCRUNTIME or UCRT libs to be linked dynamically, unless that would be a blocker for the Python client. In general we don't want any complex linking setup around MSVC runtime.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@staticlibs@paultiq

[8]ページ先頭

©2009-2025 Movatter.jp