diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-12-10 07:55:35 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-12-10 11:12:13 -0800 |
commit | ba84465d2efdc6ca4c555f9d0c9f8932212f260c (patch) | |
tree | 05f5289dd729cf7ca7fbd479c13d4e7df06202f1 /Makefile | |
parent | 2da152497778e24b77575a59f5da99b609fac1be (diff) | |
download | pugixml-ba84465d2efdc6ca4c555f9d0c9f8932212f260c.zip pugixml-ba84465d2efdc6ca4c555f9d0c9f8932212f260c.tar.gz pugixml-ba84465d2efdc6ca4c555f9d0c9f8932212f260c.tar.bz2 |
Move unreachable line handling to Makefile
This allows us to reuse this code for MinGW builds.
Additionally disable coverage step for Linux clang - it looks like
Travis has a mismatch in the version of gcov info between clang and gcov
which causes gcov to crash - somehow this crash isn't picked up as a
build error.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -58,6 +58,7 @@ test: $(EXECUTABLE) ./$(EXECUTABLE) @gcov -b -o $(BUILD)/src/ pugixml.cpp.gcda | sed -e '/./{H;$!d;}' -e 'x;/pugixml.cpp/!d;' @find . -name '*.gcov' -and -not -name 'pugixml.cpp.gcov' -exec rm {} + + @sed -i -e "s/#####\(.*\)\(\/\/ unreachable.*\)/ 1\1\2/" pugixml.cpp.gcov else test: $(EXECUTABLE) ./$(EXECUTABLE) |