Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cuda_core/build_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,17 @@ def get_sources(mod_name):
extra_link_args = []
extra_cythonize_kwargs = {}
if sys.platform == "win32":
extra_compile_args += ["/std:c++17"]
if debug:
raise RuntimeError("Debuggable builds are not supported on Windows.")
else:
extra_compile_args += ["-std=c++17"]
if debug:
extra_cythonize_kwargs["gdb_debug"] = True
extra_compile_args += ["-g", "-O0"]
extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"]
else:
extra_compile_args += ["-O3"]
extra_compile_args += ["-O2"]
extra_link_args += ["-Wl,--strip-all"]
if COMPILE_FOR_COVERAGE:
# CYTHON_TRACE_NOGIL indicates to trace nogil functions. It is not
Expand Down
Loading