Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

<Target Name="Build">
<Copy SourceFiles="@(Content)" DestinationFolder="$(OutputPath)" />

<!-- Create breadcrumb to disable dynamic linking of release crt for debug runtime -->
<WriteLinesToFile
File="$(RuntimeBinDir)/aotsdk/debugucrt.txt"
Condition="'$(TargetsWindows)'=='true' and '$(Configuration)' != 'Release'" />
</Target>

<Target Name="Restore" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ The .NET Foundation licenses this file to you under the MIT license.
<LinkerArg Condition="'$(ControlFlowGuard)' == 'Guard'" Include="/guard:cf" />
</ItemGroup>

<ItemGroup Condition="!Exists('$(IlcSdkPath)debugucrt.txt')">
<!-- Force ucrt to be dynamically linked for release runtime -->
<LinkerArg Include="/NODEFAULTLIB:libucrt.lib" />
<LinkerArg Include="/DEFAULTLIB:ucrt.lib" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' != 'Debug'">
<LinkerArg Include="/OPT:REF" />
<LinkerArg Include="/OPT:ICF" />
Expand Down