Skip to content

Commit deda680

Browse files
committed
Fix Python 3.13
1 parent 04fcc67 commit deda680

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎cuda_bindings_13/_build_shared.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ def _build_flags(name, cxx_std, debug, coverage, warnings_as_errors):
243243
# Compiler-specific flags.
244244
if name == "gnu":
245245
extra_compile_args += ["-pedantic", "-Werror=overflow"]
246+
if sys.version_info[:2] == (3, 13):
247+
# CPython 3.13's internal headers, which Cython includes, declare
248+
# anonymous structs that -pedantic warns about; keep that from
249+
# becoming an error under -Werror.
250+
extra_compile_args += ["-Wno-error=pedantic"]
246251
if name == "llvm":
247252
extra_link_args += ["-fuse-ld=lld"]
248253
# Common Linux debug/opt flags.

0 commit comments

Comments
 (0)