Skip to content

Embedder Engine build artifacts missing in Target build to generate AOT image #56213

@jwinarske

Description

@jwinarske

Generating an AOT image for Target Linux Embedder Engine requires a Host Engine build.

Required tools to generate a target AOT (linux arm/arm64) are missing from Target build, which involves needing to build for Host to get the tools.

out/host_release/dart-sdk/bin/dart
out/host_release/gen/frontend_server.dart.snapshot

This is with master.

Target build config

GN_ARGS = " \
  --clang \
  --target-os linux \
  --linux-cpu ${@gn_target_arch_name(d)} \
  --target-sysroot ${STAGING_DIR_TARGET} \
  --target-triple ${@gn_clang_triple_prefix(d)} \
  --target-toolchain ${S}/buildtools/linux-x64/clang \
  --runtime-mode release \
  --embedder-for-target \
  --enable-fontconfig \
  --lto \
  --full-dart-sdk \
  --disable-desktop-embeddings \
  "

I documented steps that built me an AOT ELF image here: jwinarske/meta-flutter#7

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: embedderUsers of the Embedder APIengineflutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions