Skip to content

Commit

Permalink
Fixed build parameters for Windows and Linux platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 25, 2024
1 parent 7f94ff1 commit 100e176
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
'-Wunused', '-Wunused-function', '-Wunused-label', '-Wunused-parameter',
'-Wunused-value', '-Wunused-variable', '-Wvariadic-macros',
'-Wvolatile-register-var', '-Wwrite-strings', '-pipe', '-Ofast', '-s',
'-std=c++20', '-fopenmp', '-mmmx', '-msse', '-msse2', '-msse3', '-msse4',
'-std=c++17', '-fopenmp', '-mmmx', '-msse', '-msse2', '-msse3', '-msse4',
'-msse4.1', '-msse4.2', '-mavx', '-mavx2', '-mfma', '-mfpmath=sse',
'-march=native', '-funroll-loops', '-ffast-math', '-static', '-static-libgcc',
'-static-libstdc++'
Expand Down Expand Up @@ -138,12 +138,12 @@
] + cpp_files

core_build_args = exe_build_args + [
'-shared',
'-fPIC', '-shared',
'-o', OUTPUT_CORE
]
exe_build_args += ['-o', OUTPUT_EXECUTABLE + '-openmp']
lib_build_args = [
'g++', '-Iinclude', '-Ilib', '-shared', '-fPIC',
'g++', '-Iinclude', '-Ilib', '-fPIC', '-shared',
'-o', OUTPUT_LIBRARY + '.so', OUTPUT_CORE
] + cc_files

Expand Down

0 comments on commit 100e176

Please sign in to comment.