From 8b3209db47567a662e311880ea3efc553c38a9e1 Mon Sep 17 00:00:00 2001 From: atalman Date: Wed, 30 Aug 2023 12:06:45 -0700 Subject: [PATCH] Try to turn off DEBUG mode when building for release --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 482ab914692..ce67413f410 100644 --- a/setup.py +++ b/setup.py @@ -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]