Skip to content

Commit

Permalink
Enable cetcompat for corerun (#103311)
Browse files Browse the repository at this point in the history
With this change we will get more validation of cet with CI
  • Loading branch information
mangod9 authored Jun 12, 2024
1 parent ced2117 commit c95d3b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coreclr/hosts/corerun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if(CLR_CMAKE_HOST_WIN32)
${STATIC_MT_CRT_LIB}
${STATIC_MT_VCRT_LIB}
)
# Enable CET-compatibility
if (CLR_CMAKE_HOST_ARCH_AMD64)
target_link_options(corerun PRIVATE "/CETCOMPAT")
endif()
else(CLR_CMAKE_HOST_WIN32)
target_link_libraries(corerun PRIVATE ${CMAKE_DL_LIBS})
# Required to expose symbols for global symbol discovery
Expand Down

0 comments on commit c95d3b8

Please sign in to comment.