Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AOT] Pass the
hybrid
option to AOT compiler, if enabled
Fixes: #7088 When the AOT hybrid mode is enabled via the `<AndroidAotMode>Hybrid</AndroidAotMode>` MSBuild property, we failed to inform the AOT compiler about its desired mode by omitting the `hybrid` argument from the list of options passed to the compiler via `--aot` The same would apply to the full AOT mode. Add `hybrid` and `full` options to the AOT compiler command line, if enabled via the `AndroidAotMode` MSBuild property. Mode is set after processing the `AotAdditionalArguments` MSBuild property. The `AndroidAotMode` property should always be the definitive source of AOT compiler mode, as it specifies the options directly supported by us. Note that the AOT compiler doesn't appear to validate options passed to it too rigorously, so setting multiple modes in some way, may have weird/invalid effects. I don't think it's our place to verify the modes, thus I'm not adding any code to that effect.
- Loading branch information