# Building haxe on mac m1

**URL:** https://community.haxe.org/t/building-haxe-on-mac-m1/3713
**Category:** Haxe
**Created:** [October 7, 2022, 2:01pm UTC](https://community.haxe.org/t/building-haxe-on-mac-m1/3713 "2022-10-07T14:01:36Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![joshtynjala](https://community.haxe.org/user_avatar/community.haxe.org/joshtynjala/32/792_2.png) [@joshtynjala](https://community.haxe.org/u/joshtynjala)
#### Post date: [October 7, 2022, 9:18pm UTC](https://community.haxe.org/t/building-haxe-on-mac-m1/3713/3 "2022-10-07T21:18:46Z")

</div>

I don’t know how different building HashLink is compared to the Haxe compiler, but I found that using the Apple Silicon version of Homebrew didn’t work to build HashLink. I needed to do some special things to force the HashLink build process use the Intel version of Homebrew instead.

So maybe there are similar requirements for the Haxe compiler. Here’s the thread where I posted my findings for HashLink. Maybe it’ll provide some clues:

> [@Compiling HashLink on macOS Apple Silicon](https://community.haxe.org/t/compiling-hashlink-on-macos-apple-silicon/3150):
>
> The current instructions to [build HashLink](https://github.com/HaxeFoundation/hashlink) on macOS don’t work on new Apple Silicon CPUs. However, I think that I’ve figured out how build for x86\_64 on Apple Silicon. First, install the Intel version of Homebrew using the following command: arch -x86\_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" You can have both Apple Silicon and Intel versions of Homebrew installed at the same time because the Apple Silicon version uses /opt/homebrew and…

---

_[View the full topic](https://community.haxe.org/t/building-haxe-on-mac-m1/3713)._
