Skip to content

Commit

Permalink
Force enable AVX
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Oct 29, 2024
1 parent 386011b commit 6fcef52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,12 @@ if(target MATCHES "x64")
HAVE_AVX512FINTRIN_H # AVX512
)

target_compile_options(
sodium
PRIVATE
-mavx
)

if(NOT target MATCHES "win32")
target_compile_definitions(
sodium
Expand Down

0 comments on commit 6fcef52

Please sign in to comment.