makefile: make it possible to turn on matchcompiler verifications with 'VERIFY=1'

This commit is contained in:
Daniel Marjamäki 2013-05-15 13:04:19 +02:00
parent 0943fecf03
commit e1fd003e2d
2 changed files with 10 additions and 2 deletions

View File

@ -11,7 +11,11 @@ ifndef SRCDIR
endif
ifeq ($(SRCDIR),build)
ifdef VERIFY
matchcompiler_S := $(shell python tools/matchcompiler.py --verify)
else
matchcompiler_S := $(shell python tools/matchcompiler.py)
endif
endif
# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.

View File

@ -234,7 +234,11 @@ int main(int argc, char **argv)
fout << "# folder where lib/*.cpp files are located\n";
makeConditionalVariable(fout, "SRCDIR", "lib");
fout << "ifeq ($(SRCDIR),build)\n"
<< " ifdef VERIFY\n"
<< " matchcompiler_S := $(shell python tools/matchcompiler.py --verify)\n"
<< " else\n"
<< " matchcompiler_S := $(shell python tools/matchcompiler.py)\n"
<< " endif\n"
<< "endif\n\n";
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.