-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UseInterpreter as part of the check for DynamicCodeSupport #20912
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Ivan Povazan <[email protected]>
It is worth noting that the cause of regression are these two changes: a72bb30 and b1fa068 /cc: @rolfbjarne Additionally, those two changes regressed MAUI maccatalyst/ios debug builds (although I am not aware if anyone reported this yet) because MAUI forces The good thing is that this PR also fixes that problem, but I wanted to draw attention to it so it is considered in any future work/improvements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
📚 [CI Build] Artifacts 📚Packages generatedView packagesPipeline on Agent |
💻 [CI Build] Tests on macOS X64 - Mac Sonoma (14) passed 💻✅ All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Ventura (13) passed 💻✅ All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Monterey (12) passed 💻✅ All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Big Sur (11) passed 💻✅ All tests on macOS M1 - Mac Big Sur (11) passed. Pipeline on Agent |
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
NET (empty diffs)
✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
🚀 [CI Build] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 168 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
/sudo backport release/8.0.1xx-xcode15.4 |
/sudo backport release/8.0.1xx-xcode15.1 |
…or DynamicCodeSupport Manual backport of #20912
…or DynamicCodeSupport Manual backport of #20912
fixes: dotnet/maui#23577
Cause:
MtouchInterpreter
is set asxamarin-macios/msbuild/Xamarin.Shared/Xamarin.Shared.props
Line 308 in d1ec7a7
DynamicCodeSupport
is set byxamarin-macios/dotnet/targets/Xamarin.Shared.Sdk.targets
Line 146 in d1ec7a7
Xamarin.Shared.Sdk.targets
is imported beforeXamarin.Shared.props
as shown below (courtesy of @ivanpovazan)so unless the value of
MtouchInterpreter
is set in the project, it's value will be empty when theDynamicCodeSupport
property is evaluated.Resolution:
To minimize the impact of this change, until it can be investigated more fully, the value of
MtouchInterpreter
is evaluated asxamarin-macios/msbuild/Xamarin.Shared/Xamarin.Shared.props
Line 308 in d1ec7a7
So adding
( '$(MtouchInterpreter)' == '' And '$(UseInterpreter)' == 'false' )
to the definition ofDynamicCodeSupport
to match theMtouchInterpreter
definition.A further fix might be to either:
DynamicCodeSupport
toXamarin.Shared.props
. This at first glance seems to be less significant than 1) but would need review and testing.