Skip to content

Commit d90dafb

Browse files
committed
+1
1 parent 502589d commit d90dafb

2 files changed

Lines changed: 24 additions & 7 deletions

File tree

configure

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4459,6 +4459,8 @@ fi
44594459

44604460
# Check for native half-float type.
44614461
AC_CACHE_CHECK([for _Float16 support], [ac_cv_float16_supported],
4462+
WITH_SAVE_ENV([
4463+
CFLAGS="$CFLAGS -mf16c"
44624464
AC_RUN_IFELSE([AC_LANG_SOURCE([[
44634465
int main(void)
44644466
{
@@ -4467,11 +4469,11 @@ int main(void)
44674469
}
44684470
]])], [ac_cv_float16_supported=yes],
44694471
[ac_cv_float16_supported=no],
4470-
[ac_cv_float16_supported=no]))
4471-
if test "$ac_cv_float16_supported" = "yes"; then
4472-
AC_DEFINE([HAVE_FLOAT16], [1],
4473-
[Defined if _Float16 C type is supported])
4474-
fi
4472+
[ac_cv_float16_supported=no])]))
4473+
AS_VAR_IF([ac_cv_float16_supported], [yes],
4474+
[AC_DEFINE([HAVE_FLOAT16], [1],
4475+
[Defined if _Float16 C type is supported])
4476+
BASECFLAGS="$BASECFLAGS -mf16c"])
44754477

44764478
dnl Check for libmpdec >= 2.5.0
44774479
PKG_CHECK_MODULES([LIBMPDEC], [libmpdec >= 2.5.0], [have_mpdec=yes], [

0 commit comments

Comments
 (0)