]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91048: Prevent optimizing away the asyncio debug offsets structure on Windows...
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Fri, 25 Apr 2025 17:43:32 +0000 (18:43 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 17:43:32 +0000 (17:43 +0000)
commita5e628beb8592d938209a09e84d072bb5f57d042
tree89c6a32981aaa5206025561718c3605f8c788f0a
parenta1f4a6b246ada368cb77c7245dfd7f5ccb6f7d87
gh-91048: Prevent optimizing away the asyncio debug offsets structure on Windows (#132963)

To avoid having the debug sections being optimised away by the compiler
we use  __attribute__((used)) on gcc and clang but in Windows this is
not supported by the Microsoft compiler and there is no equivalent flag.
Unfortunately Windows offers almost no alternative other than exporting
the symbol in the dynamic table or using it somehow.
Modules/_asynciomodule.c