Skip to content
Prev Previous commit
Make sure that compiler knows that M1 has lse
  • Loading branch information
kunalspathak committed Jul 6, 2022
commit fa2b92d5d91bf65958806af71da8ee723e5a34ff
1 change: 1 addition & 0 deletions eng/native/configurecompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ if (CLR_CMAKE_HOST_UNIX)
if(CLR_CMAKE_HOST_UNIX_ARM64)
# For OSX-Arm64, LSE instructions are enabled by default
add_definitions(-DLSE_INSTRUCTIONS_ENABLED_BY_DEFAULT)
add_compile_options(-mcpu=apple-m1)
endif(CLR_CMAKE_HOST_UNIX_ARM64)
elseif(NOT CLR_CMAKE_HOST_BROWSER)
check_c_compiler_flag(-fstack-protector-strong COMPILER_SUPPORTS_F_STACK_PROTECTOR_STRONG)
Expand Down