Skip to content

Consolidate Android cross-build setup for mono and coreclr #56622

Closed

Description

@am11

The cross-build in :/eng/ requires user to pass -cross argument to :/build.sh and set ROOTFS_DIR environment variable.

During the native build, it relies on setup done by the scripts under :/eng/common/cross. We have multiple examples in our platform matrix ({os}-{arch}) which make use of this infrastructure.

Android, however, is at the odds. For coreclr, it uses setup from :/eng/common/cross/build-android-rootfs.sh and :/eng/common/cross/toolchain.cmake, but for mono it uses a different setup. The impact is that:

The cross-build in :/eng/ requires user to pass -cross argument to :/build.sh and set ROOTFS_DIR environment variable.

does not hold for "Android on mono", due to which it requires us to add a few exceptions in the build infra and need us to remember about this exceptional case. Another down side is that the coreclr Android setup gets stale every now and then because no CI leg is exercising it.

I am opening this issue to discuss what can be done to consolidate Android build on mono and coreclr without losing any flexibility and still adapt to -cross / CrossBuild infrastructure.

Activity

  1. am11 commented on Jul 30, 2021

    @am11
    MemberAuthor
  2. fanyang-mono commented on Jul 30, 2021

    @fanyang-mono
    Member

    Thanks for opening this issue. More discussions could be found from this PR #55641

  3. added
    untriagedNew issue has not been triaged by the area owner
    on Jul 30, 2021
  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 31, 2021
  5. added this to the Future milestone on Jul 31, 2021
  6. dotnet-policy-service commented on Jan 30, 2026

    @dotnet-policy-service
    Contributor

    Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

    This process is part of our issue cleanup automation.

  7. dotnet-policy-service commented on Feb 13, 2026

    @dotnet-policy-service
    Contributor

    This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

  8. removed this from the Future milestone on Feb 13, 2026
  9. locked and limited conversation to collaborators on Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions