First of all, you have redundant whitespace in your command:
make CC=<HERE>'~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py' CXX='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py'
Your should remove it. Secondly your command is wrong - you didn't specify compilers. To summarize, it should look like this:
make CC='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py gcc' CXX='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py g++' -B
This is because, essentially, cc_args.py
will act as a wrapper (for compiler executable) to record which -I
, -D
, and other flags are passed during compilation of your project. It will then cleverly forward all flags to the compiler itself - so the project is built correctly. Invoke :h clang_complete-cc_args
and see cc_args.py
for better understanding - it is trivial.
NOTE: -B
flag is used to force make
to build, regardless of whether your current build is up -to-date or not. This way, .clang_complete
file is always up-to-date.
Finally, if after all it still does not work, then it means that qmake
generates makefile
which does not respect CC
and CXX
environment variables, but rather hard-coded paths of compiler executables. I don't remember if this is the case with qmake
, but once again, if all fails, then this is the only reason - which you can easily check by inspecting the generated makefile
.
Good luck.