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"]