aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-12-10 07:55:35 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2018-12-10 11:12:13 -0800
commitba84465d2efdc6ca4c555f9d0c9f8932212f260c (patch)
tree05f5289dd729cf7ca7fbd479c13d4e7df06202f1 /Makefile
parent2da152497778e24b77575a59f5da99b609fac1be (diff)
downloadpugixml-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--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3d176d1..4632407 100644
--- a/Makefile
+++ b/Makefile
@@ -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)