Issues running lime on Apple M1

So after doing this:

  • Uninstall Homebrew haxe
  • Download and install current/latest Haxe .pkg
  • Install haxe
  • run “haxelib setup”
  • run “haxelib install lime”

When I run lime I am back to:

$ haxelib run lime
Called from C:\HaxeToolkit\haxe\std/neko/_std/Date.hx line 98
Uncaught exception - load.c(237) : Failed to load library : /usr/local/lib/neko/std.ndll (dlopen(/usr/local/lib/neko/std.ndll, 0x0001): tried: ‘/usr/local/lib/neko/std.ndll’ (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))))

Everything installed from the .pkg file seems to be x86 arch, so I’m not sure why the neko lib is failing to load.

$ file /usr/local/bin/haxe
/usr/local/bin/haxe: Mach-O 64-bit executable x86_64
$ file /usr/local/lib/neko/std.ndll
/usr/local/lib/neko/std.ndll: Mach-O 64-bit bundle x86_64