Skip to content

Make host platform explicit in engine gn config #79403

@cbracken

Description

@cbracken

Prior to desktop, our target platfroms always differed from the host platform.

For desktop builds, the target platform is frequently (but not always) the same as the host platform. Notable exceptions are Linux and Windows arm64. macOS is somewhat unique in that both host and target platforms are multi-architecture (x64 and arm64). Other than Linux and Window arm64, we currently treat target_platform == None as target platform == host_platform. We should either require an explicit target_platform for desktop builds, or default to host-platform if not explicitly specified, so that our logic in the gn wrapper script is a bit clearer.

/cc @christopherfujino

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: contributor-productivityTeam-specific productivity, code health, technical debt.c: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine repository. See also e: labels.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions