From 013a3861c0b1d0acf74c55be48686a0e54a96b4d Mon Sep 17 00:00:00 2001 From: rthomas Date: Sat, 26 Sep 2020 11:17:03 +0200 Subject: [PATCH] Setup cmake configuration as RelWithDebInfo when building in debug mode --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ed8c8f1..45727a1 100644 --- a/setup.py +++ b/setup.py @@ -106,7 +106,7 @@ class BuildLibrary(build_ext): build_temp = self.build_temp extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name))) cmake_library_output_directory = os.path.abspath(os.path.dirname(build_temp)) - cfg = 'Debug' if self.debug else 'Release' + cfg = 'RelWithDebInfo' if self.debug else 'Release' is64 = sys.maxsize > 2**32 cmake_args = [