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

gh-85283: Fix _ctypes_test build on Windows in release mode#111005

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

Merged
vstinner merged 1 commit intopython:mainfromvstinner:ctypes_test_core
Oct 17, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedOct 17, 2023
edited by bedevere-appbot
Loading

Define Py_BUILD_CORE to not attempt to link the extension to python3.lib (which fails).

@vstinner
Copy link
MemberAuthor

Extract ofPC/pyconfig.h:

#                       if defined(_DEBUG)#                               pragma comment(lib,"python313_d.lib")#                       elif defined(Py_LIMITED_API)#                               pragma comment(lib,"python3.lib")#                       else#                               pragma comment(lib,"python313.lib")#                       endif/* _DEBUG */

In debug mode, extensions are always linked topython313_d.lib. But in release mode, extensions are linked topython3.lib if Py_LIMITED_API is defined.

Define Py_BUILD_CORE to not attempt to link the extension topython3.lib (which fails).
@vstinnervstinner merged commit2ba6f68 intopython:mainOct 17, 2023
@vstinnervstinner deleted the ctypes_test_core branchOctober 17, 2023 21:45
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…thon#111005)Define Py_BUILD_CORE to not attempt to link the extension topython3.lib (which fails).
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…thon#111005)Define Py_BUILD_CORE to not attempt to link the extension topython3.lib (which fails).
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
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp