Skip to content

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

Closed
@lambdageek

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions