Skip to content

Commit e80aa29

Browse files
committed
fix: add support for running x86_64 executables on Apple Silicon with Rosetta
1 parent 24ec846 commit e80aa29

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/debug.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ jobs:
4141
with:
4242
detached: true
4343
limit-access-to-actor: true
44+

lib.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ rec {
7474
getRunnerForTarget = target:
7575
if target.pkgsCross.stdenv.buildPlatform.canExecute target.pkgsCross.stdenv.hostPlatform
7676
then null
77+
else if pkgs.targetPlatform.system == "aarch64-darwin" && target.pkgsCross.targetPlatform.system == "x86_64-darwin"
78+
then null # Rosetta can run x86_64 executables on Apple Silicon
7779
else if target.pkgsCross.targetPlatform.isWindows
7880
then
7981
# Wine can only run programs from the same architecture

0 commit comments

Comments
 (0)