From a94010b9dd5a58a3fd08488cd5888735bee9b52b Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 5 Nov 2025 12:24:08 -0500 Subject: [PATCH] Don't strip symbols when building in --debug mode --- cuda_bindings/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_bindings/setup.py b/cuda_bindings/setup.py index d89d0bccd90..03e0ece4d05 100644 --- a/cuda_bindings/setup.py +++ b/cuda_bindings/setup.py @@ -390,7 +390,7 @@ def initialize_options(self): self.parallel = nthreads def build_extension(self, ext): - if building_wheel and sys.platform == "linux": + if building_wheel and sys.platform == "linux" and "--debug" not in sys.argv: # Strip binaries to remove debug symbols ext.extra_link_args.append("-Wl,--strip-all") super().build_extension(ext)