Skip to content

Conversation

@jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Sep 16, 2025

Fixes: #10491
Context: #10245

In 9861b57, We enabled $(PublishReadyToRun) by default in Release mode, and so we also need to disable $(AndroidEnableMarshalMethods) as it does not work in combination with R2R yet. This is really a build ordering issue, that we'll need to significantly rework in the future.

We didn't notice this issue, because we were explicitly passing -p:AndroidEnableMarshalMethods=false to the CoreCLR on-device tests.

I also cleaned up a few MSBuild tests to use the EnableMarshalMethods property.

Fixes: #10491
Context: #10245

In 9861b57, We enabled `$(PublishReadyToRun)` by default in `Release`
mode, and so we also need to disable `$(AndroidEnableMarshalMethods)`
as it does not work in combination with R2R yet. This is really a
build ordering issue, that we'll need to significantly rework in the
future.

We didn't notice this issue, because we were explicitly passing
`-p:AndroidEnableMarshalMethods=false` to the CoreCLR on-device tests.

I also cleaned up a few MSBuild tests to use the
`EnableMarshalMethods` property.
@jonathanpeppers jonathanpeppers merged commit c013f09 into main Sep 16, 2025
59 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/CoreCLRMarshalMethods branch September 16, 2025 18:29
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoreCLR] Crash on startup in release mode.

4 participants