Skip to content

Commit 2cd9df4

Browse files
committed
ENH: Avoid array copies
Avoid array copies if possible Add link time optimization for gcc builds
1 parent 6628319 commit 2cd9df4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
compile_rngs = rngs[:]
3838

3939
extra_defs = [('_CRT_SECURE_NO_WARNINGS', '1')] if os.name == 'nt' else []
40-
extra_link_args = ['/LTCG', '/OPT:REF', 'Advapi32.lib', 'Kernel32.lib'] if os.name == 'nt' else ['-flto']
41-
base_extra_compile_args = [] if os.name == 'nt' else ['-std=c99','-flto']
40+
extra_link_args = ['/LTCG', '/OPT:REF', 'Advapi32.lib', 'Kernel32.lib'] if os.name == 'nt' else []
41+
base_extra_compile_args = [] if os.name == 'nt' else ['-std=c99']
42+
4243
if USE_SSE2:
4344
if os.name == 'nt':
4445
base_extra_compile_args += ['/wd4146', '/GL']

0 commit comments

Comments
 (0)