Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Exit early on invalid gn CPU argument combos for simulators #40903

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Apr 4, 2023

This isn't really foolproof, but would catch some simple mistakes.

I mistakenly tried to build an arm64 simulator build by doing ./flutter/tools/gn --simulator --unopt --mac-cpu=arm64. It generated the expected out directory (out/ios_debug_sim_unopt_arm64), but did not set the gn arguments for the simulator build and resulted in linker errors down the line.

Also deletes an otherwise unused function.

fixes flutter/flutter#124067

@dnfield dnfield requested a review from jmagman April 4, 2023 00:06
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 4, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 4, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Apr 4, 2023

auto label is removed for flutter/engine, pr: 40903, due to - The status or check suite Linux Android clang-tidy has failed. Please fix the issues identified (or deflake) before re-applying this label.

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 4, 2023
@auto-submit auto-submit bot merged commit 2a7b34a into flutter:main Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gn script should fail if you specify --simulator and --mac-cpu or --ios-cpu
2 participants