Skip to content

Commit c95d3b8

Browse files
authored
Enable cetcompat for corerun (#103311)
With this change we will get more validation of cet with CI
1 parent ced2117 commit c95d3b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/coreclr/hosts/corerun/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ if(CLR_CMAKE_HOST_WIN32)
2727
${STATIC_MT_CRT_LIB}
2828
${STATIC_MT_VCRT_LIB}
2929
)
30+
# Enable CET-compatibility
31+
if (CLR_CMAKE_HOST_ARCH_AMD64)
32+
target_link_options(corerun PRIVATE "/CETCOMPAT")
33+
endif()
3034
else(CLR_CMAKE_HOST_WIN32)
3135
target_link_libraries(corerun PRIVATE ${CMAKE_DL_LIBS})
3236
# Required to expose symbols for global symbol discovery

0 commit comments

Comments
 (0)