Skip to content

Commit a181fd6

Browse files
committed
Merge branch 'main' into nvbugs5815123_xfail_if_mempool_oom
2 parents 1337557 + aac5bf5 commit a181fd6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cuda_core/build_hooks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,17 @@ def get_sources(mod_name):
168168
extra_link_args = []
169169
extra_cythonize_kwargs = {}
170170
if sys.platform == "win32":
171+
extra_compile_args += ["/std:c++17"]
171172
if debug:
172173
raise RuntimeError("Debuggable builds are not supported on Windows.")
173174
else:
175+
extra_compile_args += ["-std=c++17"]
174176
if debug:
175177
extra_cythonize_kwargs["gdb_debug"] = True
176178
extra_compile_args += ["-g", "-O0"]
177179
extra_compile_args += ["-D _GLIBCXX_ASSERTIONS"]
178180
else:
179-
extra_compile_args += ["-O3"]
181+
extra_compile_args += ["-O2"]
180182
extra_link_args += ["-Wl,--strip-all"]
181183
if COMPILE_FOR_COVERAGE:
182184
# CYTHON_TRACE_NOGIL indicates to trace nogil functions. It is not

0 commit comments

Comments
 (0)