[llvm-dev] Clang8 on MacOS 10.14

Hans Åberg via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 14 06:35:02 PDT 2019


> On 14 Jun 2019, at 09:58, Tim Northover <t.p.northover at gmail.com> wrote:
> 
> On Fri, 14 Jun 2019 at 05:07, Hans Åberg via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> The distribution does not seem to contain any other file stdio.h.
> 
> You're going to need a normal copy of Xcode installed to provide the
> system headers and libraries; and macOS has been moving away from
> putting anything in /usr/include even with the command line tools.
> 
> So you probably need to add an extra sysroot argument to your clang
> invocation, pointing it at the Xcode installation: -isysroot $(xcrun
> --show-sdk-path macosx). Alternatively I believe you can set the
> SDKROOT environment variable to that path, if adding CFLAGS is too
> tricky. Build systems often detect all this for you (I know CMake
> does).

I am using autotools:

If setting, in ./configure, CXXFLAGS to contain that explicitly, which is
  -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/‘

then the configure script will not look into /usr/local/.




More information about the llvm-dev mailing list