Skip to content

Commit 3d73899

Browse files
author
Tobias Kaestner
committed
fix: add aarch64 to arm64 mapping
On Linux arm64 machines the arch identifier is aarch64. Without this fix the dart-sass extension cannot load properly.
1 parent b9338eb commit 3d73899

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sphinx_revealjs/ext/sass/dart_sass.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def resolve_arch() -> ARCH_NAME:
8484
arch_name = "x64"
8585
if arch_name.startswith("arm") and arch_name != "arm64":
8686
arch_name = "arm"
87+
if arch_name.startswith("aarch64"):
88+
arch_name = "arm64"
8789
libc = platform.libc_ver()
8890
arch_suffix = "-musi" if "musl" in libc[0] else ""
8991
return f"{arch_name}{arch_suffix}" # type: ignore[return-value]

0 commit comments

Comments
 (0)