Archive of March 2019

Getting LLVM clang working on macOS 10.14.1

To get LLVM clang working on macOS 10.14.1 (Mojave), install the developer command-line tools:

xcode-select --install

assuming you first installed Xcode from the App Store.

This has been the only thing required for ages to get LLVM working on macOS. However for some reason things have changed on Mojave and we now have to install essential headers like wchar_t.h in /usr/include with an extra step. Just run this command and go through the installation wizard:

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg