You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to run YJIT on an M1 via Rosetta. You can find the most basic
49
+
instructions below, but there are a few caveats listed further down.
50
+
51
+
First, install Rosetta:
52
+
53
+
```
54
+
$ softwareupdate --install-rosetta
55
+
```
56
+
57
+
Now any command can be run with Rosetta via the `arch` command line tool.
58
+
59
+
Then you can start your shell in an x86 environment:
60
+
61
+
```
62
+
$ arch -x86_64 zsh
63
+
```
64
+
65
+
You can double check your current architecture via the `arch` command:
66
+
67
+
```
68
+
$ arch -x86_64 zsh
69
+
aaron@tc-lan-adapter ~ % arch
70
+
i386
71
+
aaron@tc-lan-adapter ~ %
72
+
```
73
+
74
+
While in your i386 shell, install Cargo and Homebrew, then hack away!
75
+
76
+
## M1 Caveats
77
+
78
+
1. You must install a version of Homebrew for each architecture
79
+
2. Cargo will install in $HOME/.cargo by default, and I don't know a good way to change architectures after install
80
+
3.`dev` won't work if you have i386 Homebrew installed on an M1
81
+
82
+
If you use Fish shell you can [read this link](https://tenderlovemaking.com/2022/01/07/homebrew-rosetta-and-ruby.html) for information on making the dev environment easier.
0 commit comments