Skip to content

Commit 3dcdd6d

Browse files
authored
Don't strip symbols when building in --debug mode (#1219)
1 parent 85d57c2 commit 3dcdd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_bindings/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def initialize_options(self):
390390
self.parallel = nthreads
391391

392392
def build_extension(self, ext):
393-
if building_wheel and sys.platform == "linux":
393+
if building_wheel and sys.platform == "linux" and "--debug" not in sys.argv:
394394
# Strip binaries to remove debug symbols
395395
ext.extra_link_args.append("-Wl,--strip-all")
396396
super().build_extension(ext)

0 commit comments

Comments
 (0)