File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
SOURCE = 'extension.c'
14
- if not support .MS_WINDOWS and not support . Py_GIL_DISABLED :
14
+ if not support .MS_WINDOWS :
15
15
# C compiler flags for GCC and clang
16
16
CFLAGS = [
17
17
# The purpose of test_cext extension is to check that building a C
18
18
# extension using the Python C API does not emit C compiler warnings.
19
19
'-Werror' ,
20
-
21
- # gh-116869: The Python C API must be compatible with building
22
- # with the -Werror=declaration-after-statement compiler flag.
23
- '-Werror=declaration-after-statement' ,
24
20
]
21
+ if not support .Py_GIL_DISABLED :
22
+ CFLAGS .append (
23
+ # gh-116869: The Python C API must be compatible with building
24
+ # with the -Werror=declaration-after-statement compiler flag.
25
+ '-Werror=declaration-after-statement' ,
26
+ )
25
27
else :
26
28
# Don't pass any compiler flag to MSVC
27
29
CFLAGS = []
You can’t perform that action at this time.
0 commit comments