-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcruntime140_threads.dll is erroneously vendored when building with Visual Studio 17.8 #115167
Labels
Comments
Sounds good to me. It shouldn't be getting into the final installers, as we take the vcruntime from this branch for release, but better to explicitly leave it out for now. |
zooba
pushed a commit
that referenced
this issue
Feb 8, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 8, 2024
…output (pythonGH-115176) (cherry picked from commit 5914a21) Co-authored-by: adang1345 <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 8, 2024
…output (pythonGH-115176) (cherry picked from commit 5914a21) Co-authored-by: adang1345 <[email protected]>
Thanks! The backports should auto-merge, so closing this as complete. I'll keep an eye on them in case they fail for some reason. |
zooba
pushed a commit
that referenced
this issue
Feb 8, 2024
…GH-115176) (cherry picked from commit 5914a21) Co-authored-by: adang1345 <[email protected]>
zooba
pushed a commit
that referenced
this issue
Feb 8, 2024
…GH-115176) (cherry picked from commit 5914a21) Co-authored-by: adang1345 <[email protected]>
fsc-eriker
pushed a commit
to fsc-eriker/cpython
that referenced
this issue
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Bug description:
As described in https://devblogs.microsoft.com/cppblog/c11-threads-in-visual-studio-2022-version-17-8-preview-2/, Visual Studio 17.8 introduced support for C11 threads, provided by
vcruntime140_threads.dll
. When I use theTools\msi\buildrelease.bat
script to build Python 3.12.2 on Windows using this Visual Studio version, thevcruntime140_threads.dll
ends up in the Python distribution. For instance, thepython-3.12.2-embed-amd64.zip
file that is built contains the filevcruntime140_threads.dll
at its root.I traced the cause of this to
cpython/PCbuild/pyproject.props
Line 253 in 17689e3
vcruntime*.dll
from the Visual C++ runtime directory. Starting with Visual Studio 17.8, this directory (which for me isC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.38.33135\x64\Microsoft.VC143.CRT
) contains the filevcruntime140_threads.dll
.Given that we aren't using C11 threads on Windows, I think we should change that line to
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" Exclude="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*_threads.dll" />
to ensure that the file is not included in the Python distribution. I can make a PR for this change.CPython versions tested on:
3.12
Operating systems tested on:
Windows
Linked PRs
The text was updated successfully, but these errors were encountered: