[cfe-dev] Libtool search path on MacOS

Jacob Carlborg via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 26 12:24:43 PDT 2017


On 2017-06-26 20:27, scott constable via cfe-dev wrote:

> I had already installed Xcode and the command line tools, but I don't
> see how this would help.

Well, if you don't have Xcode and the command line tools installed there 
wouldn't be a GCC/Clang installation to find (I don't think it would be 
able to find the one in homebrew). But if you already have that 
installed, then unfortunately, I don't know.

Although I'm not sure if you're talking about the C/C++ standard library 
headers or the internal compiler headers. The former should be found in 
the standard include paths, /usr/include. The latter are only search for 
in the relative include path, ../lib/clang/x.y.z/include, in my experience.

In my tool [1] I solved that by embedding the internal headers in the 
executable [2][3].

[1] https://github.com/jacob-carlborg/dstep

[2] 
https://github.com/jacob-carlborg/dstep/blob/master/clang/Compiler.d#L37-L38

[3] 
https://github.com/jacob-carlborg/dstep/blob/master/clang/Compiler.d#L52-L54

-- 
/Jacob Carlborg




More information about the cfe-dev mailing list