Skip to content

Commit 847995d

Browse files
authored
adding WITH_SYMBOLS env var (#300)
1 parent 77cfe4b commit 847995d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
suffices = ['cpu']
2525

2626
BUILD_DOCS = os.getenv('BUILD_DOCS', '0') == '1'
27+
WITH_SYMBOLS = os.getenv('WITH_SYMBOLS', '0') == '1'
2728

2829

2930
def get_extensions():
@@ -37,7 +38,7 @@ def get_extensions():
3738
extra_compile_args = {'cxx': ['-O2']}
3839
if not os.name == 'nt': # Not on Windows:
3940
extra_compile_args['cxx'] += ['-Wno-sign-compare']
40-
extra_link_args = ['-s']
41+
extra_link_args = [] if WITH_SYMBOLS else ['-s']
4142

4243
info = parallel_info()
4344
if ('backend: OpenMP' in info and 'OpenMP not found' not in info

0 commit comments

Comments
 (0)