[cfe-dev] Using more than one version of clang

Sean Silva silvas at purdue.edu
Tue Jan 1 12:41:35 PST 2013


On Tue, Jan 1, 2013 at 6:09 AM, Edward Diener
<eldlistmailingz at tropicsoft.com> wrote:
> Where in the doc does it specify the directory hierarchy needed ?

It is hardcoded in CompilerInvocation::GetResourcesPath in
lib/Frontend/CompilerInvocation.cpp. The doxygen [1] describes what
the function does, but the actual path it looks for is hardcoded in
the function itself, so you will have to look at the source. You can
also specify this manually with the `-resource-dir
/path/to/resource/dir/` commandline argument to `clang -cc1`.

[1] <http://clang.llvm.org/doxygen/classclang_1_1CompilerInvocation.html#a21e87a1469b3212140f3befc6c37c4c6>

-- Sean Silva



More information about the cfe-dev mailing list