File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ dnl -*- shell-script -*-
22dnl
33dnl Copyright (c) 2018-2020 FUJITSU LIMITED. All rights reserved.
44dnl Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
5+ dnl Copyright (c) 2021 Triad National Security, LLC. All rights
6+ dnl reserved.
57dnl $COPYRIGHT $
68dnl
79dnl Additional copyrights may follow
@@ -14,7 +16,16 @@ dnl Check whether the user wants to use an alternate type of C 'short float'.
1416dnl OPAL_CHECK_ALT_SHORT_FLOAT
1517dnl ------------------------------------------------------------
1618AC_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 "
1726 AC_CHECK_TYPES(_Float16)
27+ CFLAGS=$CFLAGS_save
28+ OPAL_VAR_SCOPE_POP
1829 AC_MSG_CHECKING([if want alternate C type of short float])
1930 AC_ARG_ENABLE([alt-short-float],
2031 [AS_HELP_STRING([--enable-alt-short-float= TYPE],
You can’t perform that action at this time.
0 commit comments