Skip to content

Commit 1d9a146

Browse files
github-actions[bot]rparolinpre-commit-ci[bot]
authored
Fixing cuda_bindings local build errors manifesting with GCC-13 on Linux (WSL) (#946) (#947)
* Fixing cuda_bindings local build manifesting with GCC-13 on Linux (WSL) * [pre-commit.ci] auto code formatting --------- (cherry picked from commit 559f749) Co-authored-by: Rob Parolin <rparolin@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3eeb68b commit 1d9a146

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cuda_bindings/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,13 @@ def generate_output(infile, local):
248248
"-std=c++14",
249249
"-fpermissive",
250250
"-Wno-deprecated-declarations",
251-
"-D _GLIBCXX_ASSERTIONS",
252251
"-fno-var-tracking-assignments",
253252
]
254253
if "--debug" in sys.argv:
255254
extra_cythonize_kwargs["gdb_debug"] = True
256255
extra_compile_args += ["-g", "-O0"]
256+
extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"] # libstdc++
257+
# extra_compile_args += ["-D _LIBCPP_ENABLE_ASSERTIONS"] # Consider: if clang, use libc++ preprocessor macros.
257258
else:
258259
extra_compile_args += ["-O3"]
259260

0 commit comments

Comments
 (0)