From: Sebastian Pipping Date: Thu, 3 Aug 2017 19:11:37 +0000 (+0200) Subject: coverage.sh: Cover -funsigned-char for #109 X-Git-Tag: R_2_2_4~24^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac2c26a1613ea050fd882f0a9d0079e6f5d56129;p=libexpat coverage.sh: Cover -funsigned-char for #109 --- diff --git a/expat/coverage.sh b/expat/coverage.sh index 0600847a..8f2e4d6e 100755 --- a/expat/coverage.sh +++ b/expat/coverage.sh @@ -21,7 +21,12 @@ _get_build_dir() { mingw_part=__windows fi - echo "build__${version}__unicode_${unicode_enabled}__xml_context_${xml_context}${libbsd_part}${mingw_part}" + local char_part= + if ${with_unsigned_char}; then + char_part=__unsigned_char + fi + + echo "build__${version}__unicode_${unicode_enabled}__xml_context_${xml_context}${libbsd_part}${mingw_part}${char_part}" } @@ -95,6 +100,8 @@ _run() { local BASE_FLAGS='-pipe -Wall -Wextra -pedantic -Wno-overlength-strings' BASE_FLAGS+=' --coverage --no-inline' + ${with_unsigned_char} && BASE_FLAGS="${BASE_FLAGS} -funsigned-char" + local CFLAGS="-std=c99 ${BASE_FLAGS}" local CXXFLAGS="-std=c++98 ${BASE_FLAGS}" @@ -193,6 +200,7 @@ _main() { } # All combinations: + with_unsigned_char=false with_libbsd=false for with_mingw in true false ; do for unicode_enabled in false ; do @@ -204,6 +212,7 @@ _main() { # Single cases: with_libbsd=true _build_case + with_unsigned_char=true _build_case echo echo 'Merging coverage files...'