这是indexloc提供的服务,不要输入任何密码
Skip to content

AOT support for Linux Desktop I: switch Linux builds to assemble #41612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 4, 2019

Conversation

jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Sep 30, 2019

Description

Updates linux desktop builds (debug only) to use assemble. Preparation for supporting an AOT build through the same mechanism. Removes linux support from unpack command.

#32921

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 30, 2019
@jonahwilliams jonahwilliams added the e: glfw GLFW desktop embedding label Sep 30, 2019
@codecov
Copy link

codecov bot commented Oct 2, 2019

Codecov Report

Merging #41612 into master will decrease coverage by 0.73%.
The diff coverage is 56.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #41612      +/-   ##
==========================================
- Coverage   60.92%   60.19%   -0.74%     
==========================================
  Files         194      194              
  Lines       18920    18924       +4     
==========================================
- Hits        11527    11391     -136     
- Misses       7393     7533     +140
Flag Coverage Δ
#flutter_tool 60.19% <56.09%> (-0.74%) ⬇️
Impacted Files Coverage Δ
...kages/flutter_tools/lib/src/commands/assemble.dart 11.66% <0%> (-68.34%) ⬇️
...ackages/flutter_tools/lib/src/commands/unpack.dart 6.75% <10%> (+1.7%) ⬆️
...tter_tools/lib/src/build_system/targets/linux.dart 82.97% <73.33%> (-11.47%) ⬇️
...s/flutter_tools/lib/src/macos/xcode_validator.dart 0% <0%> (-85.72%) ⬇️
...lutter_tools/lib/src/android/android_workflow.dart 37.34% <0%> (-26.59%) ⬇️
...ckages/flutter_tools/lib/src/commands/version.dart 78.26% <0%> (-15.22%) ⬇️
...ages/flutter_tools/lib/src/base/user_messages.dart 42.34% <0%> (-9.01%) ⬇️
...ckages/flutter_tools/lib/src/flutter_manifest.dart 79.36% <0%> (-5.83%) ⬇️
packages/flutter_tools/lib/src/compile.dart 73.17% <0%> (-5.58%) ⬇️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e70236e...f85c34e. Read the comment docs.

@jonahwilliams jonahwilliams changed the title [WIP] AOT support for Linux Desktop I: switch Linux builds to assemble AOT support for Linux Desktop I: switch Linux builds to assemble Oct 2, 2019
if (localEngine != null) '--local-engine=$localEngine',
'assemble',
'-dTargetPlatform=$targetPlatform',
'-dBuildMode=$buildMode',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will fail with non-debug builds for now since there are no profile or release targets.

Copy link
Contributor

Choose a reason for hiding this comment

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

ack

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I updated to be hardcoded to debug so it doesn't crash on --release

@@ -18,6 +18,9 @@ Future<void> main(List<String> arguments) async {
final String localEngine = Platform.environment['LOCAL_ENGINE'];
final String flutterRoot = Platform.environment['FLUTTER_ROOT'];

final String flutterExecutable = path.join(
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this after the localEngine check to avoid initializing and exiting early?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

if (localEngine != null) '--local-engine=$localEngine',
'assemble',
'-dTargetPlatform=$targetPlatform',
'-dBuildMode=$buildMode',
Copy link
Contributor

Choose a reason for hiding this comment

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

ack

@jonahwilliams jonahwilliams merged commit 3024053 into flutter:master Oct 4, 2019
@jonahwilliams jonahwilliams deleted the aot_linux branch October 4, 2019 19:13
Hixie added a commit that referenced this pull request Oct 5, 2019
Hixie added a commit that referenced this pull request Oct 5, 2019
@Hixie
Copy link
Contributor

Hixie commented Oct 5, 2019

I reverted this, see #42030

dnfield added a commit that referenced this pull request Oct 5, 2019
dnfield added a commit that referenced this pull request Oct 7, 2019
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e: glfw GLFW desktop embedding tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants