Skip to content
Snippets Groups Projects
Commit f2658eb0 authored by Martin Larralde's avatar Martin Larralde
Browse files

Use `-g1` instead of `--strip-all` to retain debug tracebacks in release mode

parent 8f9c9b3d
No related branches found
No related tags found
Loading
......@@ -279,7 +279,7 @@ class build_ext(_build_ext):
ext.define_macros.append(("CYTHON_WITHOUT_ASSERTIONS", 1))
if self.compiler.compiler_type in {"unix", "cygwin", "mingw32"}:
ext.extra_compile_args.append("-Wno-unused-variable")
ext.extra_link_args.append("-Wl,--strip-all")
ext.extra_link_args.append("-g1")
# remove universal binary CFLAGS from the compiler if any
if self.target_system == "macos":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment