- Travis, fix warning in ubsan compile.

- Fix configure Targetconfiditionals.h header check, to use compile.
This commit is contained in:
W.C.A. Wijngaards 2021-03-24 15:34:26 +01:00
parent 3fddde30cb
commit 90e3b8d1a9
4 changed files with 6 additions and 3 deletions

View File

@ -327,7 +327,7 @@ script:
- | - |
export MAKE_TEST="yes" export MAKE_TEST="yes"
if [ "$TEST_UBSAN" = "yes" ]; then if [ "$TEST_UBSAN" = "yes" ]; then
export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover" export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover=all"
elif [ "$TEST_ASAN" = "yes" ]; then elif [ "$TEST_ASAN" = "yes" ]; then
export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address" export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address"
fi fi

3
configure vendored
View File

@ -14793,7 +14793,8 @@ done
# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
for ac_header in TargetConditionals.h for ac_header in TargetConditionals.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default" ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
"
if test "x$ac_cv_header_TargetConditionals_h" = xyes; then : if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_TARGETCONDITIONALS_H 1 #define HAVE_TARGETCONDITIONALS_H 1

View File

@ -407,7 +407,7 @@ AC_CHECK_HEADERS([net/if.h],,, [
]) ])
# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
AC_CHECK_HEADERS([TargetConditionals.h]) AC_CHECK_HEADERS([TargetConditionals.h],,, [AC_INCLUDES_DEFAULT])
# check for types. # check for types.
# Using own tests for int64* because autoconf builtin only give 32bit. # Using own tests for int64* because autoconf builtin only give 32bit.

View File

@ -2,6 +2,8 @@
- Fix deprecation test to work for iOS TVOS and WatchOS, it uses - Fix deprecation test to work for iOS TVOS and WatchOS, it uses
CFLAGS and CPPFLAGS and also checks if the item is unavailable. CFLAGS and CPPFLAGS and also checks if the item is unavailable.
- Travis, fix script to fail when tasks fail. - Travis, fix script to fail when tasks fail.
- Travis, fix warning in ubsan compile.
- Fix configure Targetconfiditionals.h header check, to use compile.
23 March 2021: Wouter 23 March 2021: Wouter
- Travis enable all tests again. Clang analyzer only a couple times, - Travis enable all tests again. Clang analyzer only a couple times,