Alyssa Rosenzweig | e7977b8 | 2021-04-10 07:44:14 +0530 | [diff] [blame] | 1 | Notes for macOS |
| 2 | ================ |
| 3 | |
| 4 | Mesa builds on macOS without modifications. However, there are some details to |
| 5 | be 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 | |
| 16 | At the moment, only the software rasterizers are supported on macOS. Stay tuned |
| 17 | for updates here! |