RootTalk


ROOT Discussion Forums

How can I change clang's header dir?

Discuss installing and running Cling here. Please post bug reports here.

Moderator: cintdev

How can I change clang's header dir?

Unread postby hagabaka » Wed Sep 25, 2013 3:45

Hello,

I'm installing cling from the git repository and LLVM/Clang svn repositories with "make cling-only" and then "make install". This installs /usr/bin/cling, as well as /usr/lib/clang/3.3/include/*. However, the clang header files are already installed on my system through clang's Arch Linux package. Is there a way to make cling look for these header files at a different path, to avoid conflict with the distro package?

So far I've tried ./configure --with-clang-resource-dir, and patching CIFactory::createCI in cling/lib/Interpreter/CIFactory.cpp. Neither seems to have an effect, and cling still looks for headers in /usr/lib/clang/3.3.
hagabaka
 
Posts: 1
Joined: Mon Sep 23, 2013 23:34

Re: How can I change clang's header dir?

Unread postby vvassilev » Fri Oct 11, 2013 8:30

Hi,
That is in Axel's expertise but right now he is very busy.
When playing with CIFactory you could .I (dot capital i) to see the active include paths at the prompt.
Smth like:
[cling] .I
will display the include paths.
Cheers,
Vassil
vvassilev
 
Posts: 83
Joined: Mon Dec 20, 2010 17:56


Return to Cling Support

Who is online

Users browsing this forum: No registered users and 2 guests