On 04/05/2016 08:05 AM, Илья Русьянов wrote:
> make[2]: Entering directory '/tmp/cppcheck-1.72'
> ccache g++ -Ilib -D_FORTIFY_SOURCE=2
> -DCFGDIR=\"/usr/share/cppcheck/cfg\" -g -O2 -fstack-protector-strong
> -Wformat -Werror=format-security -DHAVE_RULES -DTIXML_USE_STL   -c -o
> lib/astutils.o lib/astutils.cpp
> In file included from lib/astutils.cpp:21:0:
> lib/astutils.h:49:127: error: 'nullptr' was not declared in this scope
>  const Token * astIsVariableComparison(const Token *tok, const
> std::string &comp, const std::string &rhs, const Token
> **vartok=nullptr);

Ok, I see. Changing CXX has the effect that -std=c++0x is no longer added to
CXXFLAGS because it is only done for known compilers. I'll talk to upstream
about this.

BTW it works if you don't set CXX, but put /usr/lib/ccache in the PATH.

>> Also I don't understand "rules for rewriting makefiles are broken". Which 
>> rules?
>> In cppcheck, or in ccache?
> 
> Sorry, debian/rules were meant.

Can you be a bit more specific? What exactly is broken? Are you talking about
the sed rule for gui/Makefile? I would need to be extended this to avoid
resetting CC and CXX.

Joachim

Reply via email to