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

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Jun 6, 2022

@zanderso

This causes gn to emit warnings on non-mac platforms

@dnfield dnfield requested a review from zanderso June 6, 2022 20:30
Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

use_ios_simulator defaults to true, and messes up Android builds on mac.

@dnfield
Copy link
Contributor Author

dnfield commented Jun 6, 2022

Ok, I think I figured out what's going on here -updated the else to only target mac.

@dnfield dnfield requested a review from zanderso June 6, 2022 21:18
tools/gn Outdated
if gn_args['target_os'] == 'ios':
gn_args['use_ios_simulator'] = args.simulator
else:
elif gn_args['target_os'] == 'mac':
Copy link
Member

Choose a reason for hiding this comment

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

It's a bit more complicated since you can target Android while on a mac.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But simulator is iOS specific right?

@dnfield
Copy link
Contributor Author

dnfield commented Jun 6, 2022

Filed flutter/flutter#105476 for the infra flakes.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

gn_args['host_os'] isn't always filled in apparently.

Co-authored-by: Zachary Anderson <[email protected]>
@dnfield dnfield requested a review from zanderso June 8, 2022 02:13
@zanderso
Copy link
Member

zanderso commented Jun 8, 2022

Thanks!

@dnfield dnfield added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jun 8, 2022
@fluttergithubbot fluttergithubbot merged commit 22154d7 into main Jun 8, 2022
@dnfield dnfield deleted the dnfield-patch-1 branch June 8, 2022 03:43
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 8, 2022
houhuayong pushed a commit to houhuayong/engine that referenced this pull request Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants