Skip to content

Commit

Permalink
Merge pull request #68 from SamVanheer/feature-avx-option
Browse files Browse the repository at this point in the history
Make AVX instruction set opt-out
  • Loading branch information
ddiakopoulos authored Sep 14, 2022
2 parents 9794043 + 7f2f4cb commit e95e517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/CXXhelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ endfunction()

function(_set_compile_options proj)
if(MSVC)
target_compile_options(${proj} PRIVATE /arch:AVX /Zi )
option(LIBNYQUIST_ENABLE_AVX "Enable the use of the AVX instruction set (MSVC only)" ON)

target_compile_options(${proj} PRIVATE $<$<BOOL:${LIBNYQUIST_ENABLE_AVX}>:/arch:AVX> /Zi )
endif()
endfunction()

Expand Down

0 comments on commit e95e517

Please sign in to comment.