Skip to content

Commit c17be55

Browse files
committed
Added SSE and AXV instruction sets on standard library compilation.
1 parent 6a10fc5 commit c17be55

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@
7474
'-Wunused-parameter', '-Wunused-value', '-Wunused-variable',
7575
'-Wvariadic-macros', '-Wvolatile-register-var', '-Wwrite-strings',
7676
'-pipe', '-Ofast', '-s', '-std=c++17', '-fopenmp',
77-
'-msse', '-msse2', '-msse3', '-mfpmath=sse',
78-
'-march=native', '-funroll-loops', '-ffast-math'
77+
'-msse', '-msse2', '-msse3', '-msse4', '-msse4.1', '-msse4.2',
78+
'-mavx', '-mavx2', '-mfpmath=sse', '-march=native',
79+
'-funroll-loops', '-ffast-math'
7980
]
8081

8182
if PLATFORM != 'Windows':
@@ -130,7 +131,8 @@
130131
'-pipe', '-Ofast', '-s',
131132
'-std=c++17', '-fopenmp',
132133
'-msse', '-msse2', '-msse3',
133-
'-mfpmath=sse',
134+
'-msse4', '-msse4.1', '-msse4.2',
135+
'-mavx', '-mavx2', '-mfpmath=sse',
134136
'-march=native'
135137
]
136138

0 commit comments

Comments
 (0)