Skip to content

Commit

Permalink
Fix build options for native test lib to not enable avx-512 (#61229)
Browse files Browse the repository at this point in the history
Just enable AVX, so that we can run the lib on any of our test machines.
  • Loading branch information
AndyAyersMS authored Nov 5, 2021
1 parent 852405c commit 1c7100b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tests/Interop/PInvoke/Generics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ if (MSVC)
add_compile_options(/arch:AVX2)
else()
if (NOT CLR_CMAKE_TARGET_ARCH_ARM64 AND NOT CLR_CMAKE_TARGET_ARCH_ARM)
# We need -march=native so we can detect if AVX2 is present.
# ARM does not like that option too and it make no sense to have this detection there.
add_compile_options(-march=native)
add_compile_options(-mavx)
endif()
endif()
set(SOURCES
Expand Down

0 comments on commit 1c7100b

Please sign in to comment.