Skip to content

Commit

Permalink
Updated standard C++ from 17 to 20.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 23, 2024
1 parent 3e92c0d commit 4e74951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def include_sha_headers():
'-Wunused', '-Wunused-function', '-Wunused-label', '-Wunused-parameter',
'-Wunused-value', '-Wunused-variable', '-Wvariadic-macros',
'-Wvolatile-register-var', '-Wwrite-strings', '-pipe', '-Ofast', '-s',
'-std=c++17', '-fopenmp'] + ext_instructions + ['-mfpmath=sse',
'-std=c++20', '-fopenmp'] + ext_instructions + ['-mfpmath=sse',
'-march=native', '-funroll-loops', '-ffast-math', '-static', '-static-libgcc',
'-static-libstdc++'
] + lib_headers + lib_source_files + cpp_files + ['-o', OUTPUT_EXECUTABLE]
Expand Down Expand Up @@ -345,7 +345,7 @@ def include_sha_headers():
'-Wunused-function', '-Wunused-label', '-Wunused-parameter',
'-Wunused-value', '-Wunused-variable', '-Wvariadic-macros',
'-Wwrite-strings', '-Wno-return-type-c-linkage', '-pipe',
'-std=c++17', '-fopenmp', '-march=native', '-funroll-loops',
'-std=c++20', '-fopenmp', '-march=native', '-funroll-loops',
'-ffast-math', '-flto=auto', '-Xpreprocessor', '-O3',
'-Wno-header-guard', '-Wno-pessimizing-move'
] + lib_headers + lib_source_files + cpp_files + ['-o', OUTPUT_EXECUTABLE]
Expand Down

0 comments on commit 4e74951

Please sign in to comment.