# The toolchain's pins: the sources the wasm32 and LP64 sysroots, gexcc's
# libc++ and busybox are built from. The top-level Makefile and wine/Makefile
# include this file; toolchain/gexcc/llvm-pin.sh and toolchain/sysroot/build64.sh
# read it. Change a pin here and the outputs keyed by it rebuild.

# The musl fork the wasm32 sysroot is built from (toolchain/sysroot/build32.sh):
# branch mw/gex-wasm32-slim.
MUSL_REPO   := https://github.com/MercuryWorkshop/musl-wasm.git
MUSL_COMMIT := 694e1f95271a7f9cc964998acf497978dcd77b03

# The musl fork the LP64 (wasm64) sysroot is built from (toolchain/sysroot/build64.sh).
MUSL64_REPO   := https://github.com/MercuryWorkshop/musl-wasm64.git
MUSL64_COMMIT := d18ccf68d0027ba752071b109d5bd08d89a4f7aa

# The LLVM tree libc++, libc++abi and libunwind are built from
# (toolchain/gexcc/build-cxx.sh, windows/build-cxx.sh): llvm-project at
# llvmorg-22.1.8 (clang's version) with our runtime changes on its branch gex.
# LLVM_SRC (a checkout of that commit) or LLVM_SEED (a clone that has it)
# overrides the fetch.
LLVM_REPO   := https://github.com/MercuryWorkshop/llvm-project
LLVM_COMMIT := a2954c83de5db3464ce77d0672fa041cb25a0273

# busybox, the guest's /bin/sh and coreutils (make busybox, gexcc's install,
# the page's rootfs).
BUSYBOX_VERSION := 1.37.0
BUSYBOX_URL     := https://busybox.net/downloads/busybox-1.37.0.tar.bz2
BUSYBOX_SHA256  := 3311dff32e746499f4df0d5df04d7eb396382d7e108bb9250e7b519b837043a4

# The guest-side cross compilers the page's assets are built with
# (page/build-assets.sh: the gears, the guest GL driver, ld-musl for the
# aarch64 and x86-64 guests): musl.cc's builds, fetched by make toolchains.
MUSL_CROSS_AARCH64_URL    := https://musl.cc/aarch64-linux-musl-cross.tgz
MUSL_CROSS_AARCH64_SHA256 := c909817856d6ceda86aa510894fa3527eac7989f0ef6e87b5721c58737a06c38
MUSL_CROSS_X86_64_URL     := https://musl.cc/x86_64-linux-musl-cross.tgz
MUSL_CROSS_X86_64_SHA256  := c5d410d9f82a4f24c549fe5d24f988f85b2679b452413a9f7e5f7b956f2fe7ea

# The emsdk the page's Mesa and Xwayland are built with (EMSDK, default
# ~/emsdk): make page checks its upstream/emscripten/emscripten-version.txt.
EMSCRIPTEN_VERSION := 6.0.1
