Add CET Shadow Stack Compatible flag (#5637)
Add CET Shadow Stack Compatible flag when building DXC to safeguard against ROP/JOP attacks. Fixes [#5578](https://github.com/microsoft/DirectXShaderCompiler/issues/5578)
This commit is contained in:
Родитель
96fcc60ff6
Коммит
50c4c887f1
|
@ -118,6 +118,11 @@ add_compile_options(/guard:cf)
|
|||
add_link_options(/guard:cf)
|
||||
endif(WIN32)
|
||||
|
||||
# Enable CET Shadow Stack
|
||||
if(WIN32 AND NOT (CMAKE_GENERATOR_PLATFORM MATCHES "ARM.*"))
|
||||
add_link_options(/CETCOMPAT)
|
||||
endif(WIN32 AND NOT (CMAKE_GENERATOR_PLATFORM MATCHES "ARM.*"))
|
||||
|
||||
# HLSL Change Ends
|
||||
|
||||
# HLSL Change Starts - set flag for Appveyor CI
|
||||
|
|
Загрузка…
Ссылка в новой задаче