Skip to content

Commit ff0c538

Browse files
authored
Default DynamicCodeSupport to true for CoreCLR (#103594)
Fixes #80398
1 parent 3b14b0c commit ff0c538

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
<!-- Use .dwarf files instead of .dsym files since our symbol exporting may not safely handle folders. -->
5454
<NativeSymbolExt Condition="'$(_IsApplePlatform)' == 'true'">.dwarf</NativeSymbolExt>
5555
<DsymUtilOptions Condition="'$(_IsApplePlatform)' == 'true'">--flat</DsymUtilOptions>
56+
<!-- Prevent getting DynamicCodeSupport=true default from ILLink targets that are imported
57+
with the Sdk.targets import above, before Native AOT defaults get a chance to set it -->
58+
<DynamicCodeSupport>false</DynamicCodeSupport>
5659
</PropertyGroup>
5760

5861
<ItemGroup Condition="'$(NativeAotSupported)' == 'true'">

src/tools/illink/src/ILLink.Tasks/build/Microsoft.NET.ILLink.targets

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Copyright (c) .NET Foundation. All rights reserved.
5555
<_ComObjectDescriptorSupport Condition="'$(_ComObjectDescriptorSupport)' == ''">false</_ComObjectDescriptorSupport>
5656
<_DesignerHostSupport Condition="'$(_DesignerHostSupport)' == ''">false</_DesignerHostSupport>
5757
<_DefaultValueAttributeSupport Condition="'$(_DefaultValueAttributeSupport)' == ''">false</_DefaultValueAttributeSupport>
58+
<DynamicCodeSupport Condition="'$(DynamicCodeSupport)' == ''">true</DynamicCodeSupport>
5859
<UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">false</UseSystemResourceKeys>
5960
</PropertyGroup>
6061

0 commit comments

Comments
 (0)