Files
sdk/build/linux/alpine_sysroot_scripts
なつき e8f47127fa [infra] Remove ia32 from alpine sysroot script
Closes https://github.com/dart-lang/sdk/pull/60764

GitOrigin-RevId: 7077a42d948bd0c55ce0e6c7de6fe992e29c4ed2
Change-Id: Ib9573f3d017750a77e1faa28cd38f35851738f37
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429820
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2025-05-20 14:39:28 -07:00
..

Alpine Linux Sysroots

This directory contains a script for community contributed alpine linux sysroot support.

To build the dart-sdk on alpine linux, please checkout the community maintained project https://github.com/dart-musl/dart.

On Alpine Linux, run the script directly:

./build/linux/alpine_sysroot_scripts/install-sysroot.sh

By default, the script installs sysroots for the following architectures:

  • aarch64
  • armv7
  • riscv64
  • x86_64

To install sysroots for specific architectures, you can run:

./build/linux/alpine_sysroot_scripts/install-sysroot.sh aarch64 riscv64 x86_64 ...

On other linux systems, you can run the script with Alpine Linux container:

docker container run --rm \
                     --volume "$PWD:$PWD" \
                     --workdir "$PWD" \
                     docker.io/library/alpine \
                     ./build/linux/alpine_sysroot_scripts/install-sysroot.sh