diff --git a/Makefile b/Makefile index e41ec661e..e7e0602aa 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ ifndef LIBDIR endif ifeq ($(LIBDIR),build) - matchcompiler_S := $(shell sh -c 'python tools/matchcompiler.py 2>/dev/null || echo not') + matchcompiler_S := $(shell python tools/matchcompiler.py) endif # Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles. diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 19985b76d..97d90de76 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -235,7 +235,7 @@ int main(int argc, char **argv) fout << "# folder where lib/*.cpp files are located\n"; makeConditionalVariable(fout, "LIBDIR", "lib"); fout << "ifeq ($(LIBDIR),build)\n" - << " matchcompiler_S := $(shell sh -c 'python tools/matchcompiler.py 2>/dev/null || echo not')\n" + << " matchcompiler_S := $(shell python tools/matchcompiler.py)\n" << "endif\n\n"; // The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.