File tree 1 file changed +11
-0
lines changed 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ dnl -*- shell-script -*-
2
2
dnl
3
3
dnl Copyright (c) 2018-2020 FUJITSU LIMITED. All rights reserved.
4
4
dnl Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
5
+ dnl Copyright (c) 2021 Triad National Security, LLC. All rights
6
+ dnl reserved.
5
7
dnl $COPYRIGHT $
6
8
dnl
7
9
dnl Additional copyrights may follow
@@ -14,7 +16,16 @@ dnl Check whether the user wants to use an alternate type of C 'short float'.
14
16
dnl OPAL_CHECK_ALT_SHORT_FLOAT
15
17
dnl ------------------------------------------------------------
16
18
AC_DEFUN([OPAL_CHECK_ALT_SHORT_FLOAT], [
19
+ dnl
20
+ dnl Testing for this without checking if compiler generates warnings makes for a messy build.
21
+ dnl Hence the twiddling of the CFLAGS
22
+ dnl
23
+ OPAL_VAR_SCOPE_PUSH([CFLAGS_save])
24
+ CFLAGS_save=$CFLAGS
25
+ CFLAGS=" -Werror $CFLAGS "
17
26
AC_CHECK_TYPES(_Float16)
27
+ CFLAGS=$CFLAGS_save
28
+ OPAL_VAR_SCOPE_POP
18
29
AC_MSG_CHECKING([if want alternate C type of short float])
19
30
AC_ARG_ENABLE([alt-short-float],
20
31
[AS_HELP_STRING([--enable-alt-short-float= TYPE],
You can’t perform that action at this time.
0 commit comments