strip debug symbols from Linux binaries

This commit is contained in:
Max Bachmann 2021-03-10 13:54:39 +01:00 committed by GitHub
parent 3854be7ca4
commit d62cef5f86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
)
)