Skip to content

Commit 8f3acbb

Browse files
VinfallSchniz
andauthored
fix: support x64-musl (#1109)
* fix: support x64-musl Yes, an easy fix as silly as bypassing the hardcoded check and then set `FNM_NODE_DIST_MIRROR` & `FNM_ARCH` in shell rc. * Create poor-otters-cheer.md --------- Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
1 parent 463cc90 commit 8f3acbb

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎.changeset/poor-otters-cheer.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fnm": patch
3+
---
4+
5+
support `x64-musl` arch by adding a `--arch x64-musl` to fnm env

‎src/arch.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::version::Version;
44
pub enum Arch {
55
X86,
66
X64,
7+
X64Musl,
78
Arm64,
89
Armv7l,
910
Ppc64le,
@@ -43,6 +44,7 @@ impl std::str::FromStr for Arch {
4344
match s {
4445
"x86" => Ok(Arch::X86),
4546
"x64" => Ok(Arch::X64),
47+
"x64-musl" => Ok(Arch::X64Musl),
4648
"arm64" => Ok(Arch::Arm64),
4749
"armv7l" => Ok(Arch::Armv7l),
4850
"ppc64le" => Ok(Arch::Ppc64le),
@@ -58,6 +60,7 @@ impl std::fmt::Display for Arch {
5860
let arch_str = match self {
5961
Arch::X86 => String::from("x86"),
6062
Arch::X64 => String::from("x64"),
63+
Arch::X64Musl => String::from("x64-musl"),
6164
Arch::Arm64 => String::from("arm64"),
6265
Arch::Armv7l => String::from("armv7l"),
6366
Arch::Ppc64le => String::from("ppc64le"),

0 commit comments

Comments
 (0)