I'm trying go get VIM to compile c++ code with Clang instead of gcc (as I prefer the debug-output from CLang). Unfortunately I am unable to get :make to use cLang for compiling.
So time to ask if someone can point me in the right direction as I'm still getting to grips with VIM:
Relevant info:
0) This is on FreeBSD stable with clang-develop from ports.
1) I've checked that compiling with clang++ from the CMD-line works as it should.
2) Hence clang and clang++ are indeed in $PATH.
3) I've used the vimrc file as provided by the llvm project, see https://llvm.org/svn/llvm-project/llvm/trunk/utils/vim/vimrc
*) the above should have worked according to the discussion in the llvm mailing-list here: http://markmail.org/message/mq73uxp...man+page:1+mid:ttziiaqgt2oabua6+state:results
Unfortunately typing :make "program-name" still uses gcc
4) After that I've tried setting :compiler clang in vim after installing the following script: http://www.vim.org/scripts/script.php?script_id=3259
(typing :scriptnames confirms that this file does indeed get read; unfortunately VIM keeps using gcc) :q
After this I'm out of ideas, so hopefully someone can point me in the correct direction as google unfortunately doesn't.
So time to ask if someone can point me in the right direction as I'm still getting to grips with VIM:
Relevant info:
0) This is on FreeBSD stable with clang-develop from ports.
1) I've checked that compiling with clang++ from the CMD-line works as it should.
2) Hence clang and clang++ are indeed in $PATH.
3) I've used the vimrc file as provided by the llvm project, see https://llvm.org/svn/llvm-project/llvm/trunk/utils/vim/vimrc
*) the above should have worked according to the discussion in the llvm mailing-list here: http://markmail.org/message/mq73uxp...man+page:1+mid:ttziiaqgt2oabua6+state:results
Unfortunately typing :make "program-name" still uses gcc
4) After that I've tried setting :compiler clang in vim after installing the following script: http://www.vim.org/scripts/script.php?script_id=3259
(typing :scriptnames confirms that this file does indeed get read; unfortunately VIM keeps using gcc) :q
After this I'm out of ideas, so hopefully someone can point me in the correct direction as google unfortunately doesn't.