MacOS clang via Homebrew broken under Mojave `wchar.h`

前端 未结 3 1850
一向
一向 2020-12-20 18:18

Unsurprisingly the new update of OSX Mojave broke my llvm installation in Homebrew, these are the steps I tried:

xcode-select --install # Complained, so I in         


        
3条回答
  •  情书的邮戳
    2020-12-20 18:58

    Here's how I solved it, given I have paper deadlines and this is the least of my worries:

    1. Disabled SIP on my Mac
    2. Symlinked /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include to /usr/include as is expected in POSIX environments.
    3. Re-enabled SIP.

    Now I got to make a note to re-do this everytime a new OSX update comes out. This has not broken anything wrt Xcode, clang (from brew) etc so I'll keep it. Be advised though, this might break your stuff.

提交回复
热议问题