-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Directory.Build.props * Update Directory.Build.props
- Loading branch information
1 parent
7116993
commit b090c4f
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 20 additions & 1 deletion
21
src/Samples/TestEmbedded/C++ Components/Directory.Build.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
</Project> | ||
|
||
<ItemDefinitionGroup> | ||
<ClCompile> | ||
<SDLCheck>true</SDLCheck> | ||
<ControlFlowGuard Condition="'$(Configuration)'=='Release'">Guard</ControlFlowGuard> | ||
<!-- /Qspectre Specifies compiler generation of instructions to mitigate certain Spectre variant 1 security vulnerabilities. BinSkim asks for this. --> | ||
<!-- /ZH:SHA_256 Hash algorithm for file checksums in debug info --> | ||
<AdditionalOptions>%(AdditionalOptions) /Qspectre /ZH:SHA_256</AdditionalOptions> | ||
</ClCompile> | ||
<Link Condition="'$(Configuration)'=='Release'"> | ||
<!-- /Brepro Enables deterministic output from the compiler toolchain --> | ||
<!-- /PDBALTPATH Stops pdb's basepath from appearing in the Debug Directories of the image header --> | ||
<!-- /CETCOMPAT enables Control-flow Enforcement Technology (CET) Shadow Stack mitigation. | ||
BinSkim asks for this. /CETCOMPAT does not support arm64. --> | ||
<AdditionalOptions Condition="'$(Platform)' == 'arm64'">%(AdditionalOptions) /Brepro /PDBALTPATH:$(TargetName).pdb</AdditionalOptions> | ||
<AdditionalOptions Condition="'$(Platform)' != 'arm64'">%(AdditionalOptions) /Brepro /PDBALTPATH:$(TargetName).pdb /CETCOMPAT</AdditionalOptions> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
|
||
</Project> |