From acb7c185677888f260b72e42009bfdd6f925bd36 Mon Sep 17 00:00:00 2001 From: Rob Parolin Date: Thu, 4 Sep 2025 16:40:12 -0700 Subject: [PATCH] Fixing `cuda_bindings` local build errors manifesting with GCC-13 on Linux (WSL) (#946) * Fixing cuda_bindings local build manifesting with GCC-13 on Linux (WSL) * [pre-commit.ci] auto code formatting --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 559f749972d35b56f1c4655e8df62ecf3bb0c71c) --- cuda_bindings/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index 3d9a114425..2c371471e6 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -248,12 +248,13 @@ def generate_output(infile, local): "-std=c++14", "-fpermissive", "-Wno-deprecated-declarations", - "-D _GLIBCXX_ASSERTIONS", "-fno-var-tracking-assignments", ] if "--debug" in sys.argv: extra_cythonize_kwargs["gdb_debug"] = True extra_compile_args += ["-g", "-O0"] + extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"] # libstdc++ + # extra_compile_args += ["-D _LIBCPP_ENABLE_ASSERTIONS"] # Consider: if clang, use libc++ preprocessor macros. else: extra_compile_args += ["-O3"]