From d62cef5f86fc74150717840900697586d7944ea3 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Wed, 10 Mar 2021 13:54:39 +0100 Subject: [PATCH] strip debug symbols from Linux binaries --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 163daa2..8b3ca93 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ class BuildExt(build_ext): """A custom build extension for adding compiler-specific options.""" c_opts = { 'msvc': ['/EHsc', '/O2', '/std:c++11'], - 'unix': ['-O3', '-std=c++11', '-Wextra', '-Wall'], + 'unix': ['-O3', '-std=c++11', '-Wextra', '-Wall', '-g0'], } l_opts = { 'msvc': [], @@ -76,4 +76,4 @@ if __name__ == "__main__": setup( cmdclass={'build_ext': BuildExt}, ext_modules = ext_modules - ) \ No newline at end of file + )