From 5ac6621767ba571a2ba82b537fdee06a3d76d68e Mon Sep 17 00:00:00 2001 From: neumachen Date: Tue, 18 Aug 2026 21:03:28 -0500 Subject: [PATCH] fix(mise): skip mold on unsupported platforms Restrict the Linux-only mold package to Linux so mise install succeeds on macOS and Windows. Document the platform behavior and record the fix in the changelog. --- .mise.toml | 6 ++++-- CHANGELOG.md | 6 ++++++ README.md | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.mise.toml b/.mise.toml index 07af10c..2d95c16 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,8 +1,10 @@ [tools] rust = "1.95.0" -# Native linker (faster dev builds; referenced by RUSTFLAGS below) -mold = "latest" +# Native linker (faster dev builds; referenced by RUSTFLAGS below). +# mold is Linux-only (aqua:rui314/mold has no macOS/Windows package), so it is +# restricted to Linux and skipped on macOS/Windows via the `os` filter. +mold = { version = "latest", os = ["linux"] } # Cargo extensions (installed via cargo-binstall or cargo install) "cargo:cargo-audit" = "latest" diff --git a/CHANGELOG.md b/CHANGELOG.md index 1995b24..dca2421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- **mise `mold` on unsupported platforms**: the mise configuration now skips the + Linux-only `mold` linker on macOS and Windows, preventing `mise install` from + failing on those platforms. + ## [0.1.1] - 2026-08-18 ### Added diff --git a/README.md b/README.md index 472cd77..089ee72 100644 --- a/README.md +++ b/README.md @@ -357,6 +357,10 @@ targets are thin wrappers that forward to `mise run `. Run `mise tasks` to list all available tasks, or use `mise run check` to run format-check, lint, and test in one command. +mise installs the optional [`mold`](https://github.com/rui314/mold) linker +only on Linux; macOS and Windows skip it and use their platform-default +linker. + ### Makefile targets | Target | Action |