Skip to content

Commit

Permalink
Enable AVX2 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Oct 29, 2024
1 parent 2b90355 commit bb722b7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,14 @@ if(target MATCHES "x64")
HAVE_AVX512FINTRIN_H # AVX512
)

target_compile_options(
sodium
PRIVATE
-mavx
)
if(target MATCHES "win32")
target_compile_options(
sodium
PRIVATE
-mavx
-mavx2
)
endif()

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

0 comments on commit bb722b7

Please sign in to comment.