blob: fa7e0d471e3c592c2f1da42413cd5e85a9df77c0 [file] [log] [blame]
Alyssa Rosenzweige7977b82021-04-10 07:44:14 +05301Notes for macOS
2================
3
4Mesa builds on macOS without modifications. However, there are some details to
5be aware of.
6
7- Mesa has a number of build-time dependencies. Most dependencies, including
8 Meson itself, are available in `homebrew <https://brew.sh>`, which has a
9 Mesa package for reference. The exception seems to be Mako, a Python module
10 used for templating, which you can install as `pip3 install mako`.
11- macOS's default C compiler doesn't play nice with some C11 idioms used in
12 Mesa. To workaround, set `-Dc_std=c11`.
13- macOS is picky about its build-time environment. Type `brew sh` before
14 building to get the Homebrew dependencies in your path.
15
16At the moment, only the software rasterizers are supported on macOS. Stay tuned
17for updates here!