Skip to content

System.Native: eng/native/tryrun.cmake host/target confusion #89039

Closed

Description

@lambdageek

When doing an android-x86 build on an osx-arm64 machine, during ./build.sh --os android -arch x86, we end up here during the System.Native build

message(FATAL_ERROR "Arch is ${TARGET_ARCH_NAME}. Only arm64 or x64 is supported for OSX cross build!")

This is the else case for

if(DARWIN)
if(TARGET_ARCH_NAME MATCHES "^(arm64|x64)$")

This seems wrong - DARWIN is the host machine (osx-arm64), arm64|x64 is checking the target architecture

Activity

  1. ghost added
    needs-area-label
    on Jul 17, 2023
  2. ghost added
    untriaged
    on Jul 17, 2023
  3. lambdageek commented on Jul 17, 2023

    @lambdageek
    MemberAuthor

    Note that ./build.sh --os android -arch x86 will fail earlier, during the mono build, unless you include #89027

    but after that it's an eng/native/tryrun.cmake problem

  4. lambdageek commented on Jul 17, 2023

    @lambdageek
    MemberAuthor
  5. added and removed
    needs-area-label
    on Jul 17, 2023
  6. added this to the 8.0.0 milestone on Jul 17, 2023
  7. ghost removed
    untriaged
    on Jul 17, 2023
  8. modified the milestones: 8.0.0, 9.0.0 on Aug 9, 2023
  9. removed their assignment
    on Feb 27, 2024
  10. lewing commented on Jul 30, 2024

    @lewing
    Member

    @akoeplinger what work is left here?

  11. modified the milestones: 9.0.0, 10.0.0 on Jul 30, 2024
  12. locked and limited conversation to collaborators on Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions