mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730)
Export the Py_FrozenMain() function: fix a Python 3.9.0 regression. Python 3.9 uses -fvisibility=hidden and the function was not exported explicitly and so not exported. Add also Py_FrozenMain to the stable ABI on Windows.
This commit is contained in:
parent
7cf0aad96d
commit
b5c7b38f5e
|
@ -32,6 +32,8 @@ PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int);
|
|||
/* Bootstrap __main__ (defined in Modules/main.c) */
|
||||
PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv);
|
||||
|
||||
PyAPI_FUNC(int) Py_FrozenMain(int argc, char **argv);
|
||||
|
||||
PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv);
|
||||
|
||||
/* In pathconfig.c */
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Export the :c:func:`Py_FrozenMain` function: fix a Python 3.9.0 regression.
|
||||
Python 3.9 uses ``-fvisibility=hidden`` and the function was not exported
|
||||
explicitly and so not exported.
|
|
@ -49,6 +49,7 @@ EXPORT_FUNC(Py_Exit)
|
|||
EXPORT_FUNC(Py_FatalError)
|
||||
EXPORT_FUNC(Py_Finalize)
|
||||
EXPORT_FUNC(Py_FinalizeEx)
|
||||
EXPORT_FUNC(Py_FrozenMain)
|
||||
EXPORT_FUNC(Py_GenericAlias)
|
||||
EXPORT_FUNC(Py_GenericAliasType)
|
||||
EXPORT_FUNC(Py_GetArgcArgv)
|
||||
|
|
Loading…
Reference in a new issue