FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-85283: Fix _ctypes_test build on Windows in release mode by vstinner · Pull Request #111005 · python/cpython · GitHub

/ cpython Public

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

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:ctypes_test_core
Oct 17, 2023
Merged

gh-85283: Fix _ctypes_test build on Windows in release mode#111005
vstinner merged 1 commit into
python:mainfrom
vstinner:ctypes_test_core

Conversation

vstinner commented Oct 17, 2023
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

Extract of PC/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 to python313_d.lib. But in release mode, extensions are linked to python3.lib if Py_LIMITED_API is defined.

Define Py_BUILD_CORE to not attempt to link the extension to
python3.lib (which fails).
vstinner merged commit 2ba6f68 into python:main Oct 17, 2023
vstinner deleted the ctypes_test_core branch October 17, 2023 21:45
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…thon#111005)

Define Py_BUILD_CORE to not attempt to link the extension to
python3.lib (which fails).
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…thon#111005)

Define Py_BUILD_CORE to not attempt to link the extension to
python3.lib (which fails).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL