From 4eeba2629c7b4cee9bc44b4b86ac359b15f155d4 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Wed, 4 Oct 2023 09:40:01 -0500 Subject: [PATCH] [Build]Enable Control Flow Guard; required for MS binaries (#28910) * Enable Control Flow Guard; it is a requirement for any MS binaries As it says on the tin. Go go gadget VC! * Disable CFG for CLR projects (boo) * Disable E&C... (cherry picked from commit f0c3f58468c2b5d5eb7ebd37e60b82e6f14fc5e8) * okay, stop being surgical and just whack it * Revert "okay, stop being surgical and just whack it" This reverts commit e4e10c6b8ae0a5b407bb9d3d11b34b82a14934ed. * Oh CLRSupport is a **property** --- Cpp.Build.props | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cpp.Build.props b/Cpp.Build.props index 2da75a85876..5eb275a5076 100644 --- a/Cpp.Build.props +++ b/Cpp.Build.props @@ -42,6 +42,9 @@ arm64 false $(MSBuildThisFileFullPath)\..\deps\;$(MSBuildThisFileFullPath)\..\packages\;$(ExternalIncludePath) + + + Guard @@ -53,9 +56,12 @@ false true stdcpplatest - false + false /await %(AdditionalOptions) _UNICODE;UNICODE;%(PreprocessorDefinitions) + + Guard + ProgramDatabase Windows