Skip to content

Commit

Permalink
Try to turn off DEBUG mode when building for release (#7914)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Aug 30, 2023
1 parent d073a19 commit 96950a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ def get_extensions():
extra_compile_args["nvcc"] = [f for f in nvcc_flags if not ("-O" in f or "-g" in f)]
extra_compile_args["nvcc"].append("-O0")
extra_compile_args["nvcc"].append("-g")
else:
print("Compiling with debug mode OFF")
extra_compile_args["cxx"].append("-g0")

sources = [os.path.join(extensions_dir, s) for s in sources]

Expand Down

0 comments on commit 96950a5

Please sign in to comment.