From d76e93c380921018a65968a96eccf430ead1be32 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 11 Mar 2026 12:34:08 -0600 Subject: [PATCH] fix(resolver): prefer no-dep builds in libc waterfall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Static (none) first on all platforms — no runtime dependencies. Linux: none, gnu, musl. Windows: none, msvc (vcredist not bundled). --- internal/resolver/resolver.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/resolver/resolver.go b/internal/resolver/resolver.go index bac15c1..509790e 100644 --- a/internal/resolver/resolver.go +++ b/internal/resolver/resolver.go @@ -270,9 +270,11 @@ func enumerateTriplets(osStr, archStr, libcStr string) []platformTriple { // No preference: try all common options. switch osStr { case "linux": - libcs = []string{"gnu", "musl", "none", ""} + // none first (static, no deps), then gnu, musl, empty. + libcs = []string{"none", "gnu", "musl", ""} case "windows": - libcs = []string{"msvc", "none", ""} + // none first (no deps), msvc last (needs vcredist). + libcs = []string{"none", "msvc", ""} default: libcs = []string{"none", ""} }