Uh oh!
There was an error while loading. Please reload this page.
[mono] Add conditional substitution for IsDynamicCodeSupported when targeting ios-like platforms - #86971
Conversation
ghost
commented
May 31, 2023
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger Issue DetailsThis PR introduces conditional linker substitution for Contributes to: dotnet/macios#18340
|
ivanpovazan
commented
May 31, 2023
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ivanpovazan
commented
May 31, 2023
NativeAOT sets the feature switch in the sdk: https://github.com/dotnet/sdk/blob/9ca8336afab6247a22e745c2de4960e9b660d164/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets#L27 |
I think once Alex can land a fix for dotnet/sdk#25392, we would have the option of having it set in the SDK. There will likely need to be properties for nativeaot and monoaot. |
Uh oh!
There was an error while loading. Please reload this page.
lewing
commented
Jun 1, 2023
You can set it in WorkloadManifest.targets now |
lewing
left a comment
There was a problem hiding this comment.
The linker substitution doesn't look conditional to me?
ivanpovazan
commented
Jun 1, 2023
@lewing thanks for your input, I have a couple of questions:
|
marek-safar
commented
Jun 1, 2023
This needs to be wired up into some internal msbuild property otherwise it has no effect because we don't want anyone to change this manually. |
Agreed. Do you agree @marek-safar ? |
ivanpovazan
commented
Jun 5, 2023
/cc: @lambdageek |
ivanpovazan
commented
Jun 7, 2023
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ivanpovazan
commented
Jun 8, 2023
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ivanpovazan
commented
Jun 9, 2023
Failures seem unrelated |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This reverts commit 682a3c0.
I have removed the previously added test as this set up is not unit testable for which I have considered:
None of the approaches seems feasible. Finally, as this change only affects app size, the verification and impact should be observable in size/perf measurements. |
eerhardt
left a comment
There was a problem hiding this comment.
LGTM. I agree testing this change here is not really feasible at this time. Maybe if we had "dotnet-linker-tests" for iOS working, it could be possible.
This PR introduces conditional linker substitution for
get_IsDynamicCodeSupportedmethod when targeting ios-like platforms with mono.The substitution is enabled when feature switch
DynamicCodeSupportis set tofalse, which should only happen in fullAOT mode - with no interpreter fallback.Contributes to: dotnet/macios#18340