diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-21 23:21:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 23:21:07 (GMT) |
commit | 3f5c5649cfefe5b03cebe53b3ae766e2739eee23 (patch) | |
tree | 61ad077a771abb101046a35c570a3046e768b3f8 /Tools/c-analyzer/c_parser/preprocessor/gcc.py | |
parent | 26e06ad617bb416201c769fea91cd33d544c6a1c (diff) | |
download | cpython-3f5c5649cfefe5b03cebe53b3ae766e2739eee23.zip cpython-3f5c5649cfefe5b03cebe53b3ae766e2739eee23.tar.gz cpython-3f5c5649cfefe5b03cebe53b3ae766e2739eee23.tar.bz2 |
gh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE (#109690)
Fix make check-c-globals: complete USE_LIMITED_C_API list of the
c-analyzer.
Diffstat (limited to 'Tools/c-analyzer/c_parser/preprocessor/gcc.py')
-rw-r--r-- | Tools/c-analyzer/c_parser/preprocessor/gcc.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/c-analyzer/c_parser/preprocessor/gcc.py b/Tools/c-analyzer/c_parser/preprocessor/gcc.py index 18d1b1a..d206ceb 100644 --- a/Tools/c-analyzer/c_parser/preprocessor/gcc.py +++ b/Tools/c-analyzer/c_parser/preprocessor/gcc.py @@ -3,13 +3,18 @@ import re from . import common as _common -# The following C files must not be built with Py_BUILD_CORE, -# because they use the limited C API. +# The following C files define the Py_LIMITED_API macro, and so must not be +# built with the Py_BUILD_CORE macro defined. USE_LIMITED_C_API = frozenset(( + # Modules/ '_testcapimodule.c', '_testclinic_limited.c', 'xxlimited.c', 'xxlimited_35.c', + + # Modules/_testcapi/ + 'heaptype_relative.c', + 'vectorcall_limited.c', )) TOOL = 'gcc' |