Skip to content

Commit 2975717

Browse files
authored
[mono] Add conditional substitution for IsDynamicCodeSupported when targeting ios-like platforms (#86971)
1 parent 5fe7b06 commit 2975717

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/mono/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.iOS.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
<type fullname="System.Runtime.CompilerServices.RuntimeFeature">
44
<method signature="System.Boolean get_IsDynamicCodeCompiled()" body="stub" value="false" />
55
</type>
6+
<type fullname="System.Runtime.CompilerServices.RuntimeFeature" feature="System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported" featurevalue="false">
7+
<method signature="System.Boolean get_IsDynamicCodeSupported()" body="stub" value="false" />
8+
</type>
69
</assembly>
710
</linker>

src/tests/FunctionalTests/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<InvariantGlobalization Condition="'$(TargetOS)' == 'maccatalyst' and '$(InvariantGlobalization)' == ''">true</InvariantGlobalization>
4141
<StartupHookSupport Condition="'$(StartupHookSupport)' == ''">false</StartupHookSupport>
4242
<UseNativeHttpHandler Condition="'$(UseNativeHttpHandler)' == ''">false</UseNativeHttpHandler>
43+
<DynamicCodeSupport Condition="'$(DynamicCodeSupport)' == '' and '$(MonoForceInterpreter)' != 'true'">false</DynamicCodeSupport>
4344
</PropertyGroup>
4445

4546
<Import Project="..\..\libraries\Directory.Build.props" />

0 commit comments

Comments
 (0)