Skip to content

Commit cb0838f

Browse files
committed
Avoid unnecessary callbacks
We don't need to call for heavyweight tests until after the lightweight tests pass.
1 parent fac07e6 commit cb0838f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

acsm_cxx_compiler_standard.m4

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ dnl still "count" as earlier standards too.
106106
AS_IF([test 2017 -gt "$acsm_CXX_STD_MIN"],
107107
[AX_CXX_COMPILE_STDCXX([17],[$3],[optional])],
108108
[AX_CXX_COMPILE_STDCXX([17],[$3],[mandatory])])
109-
AS_IF([test $acsm_found_cxx -eq 0],
109+
AS_IF([test "$HAVE_CXX17" = "1" -a $acsm_found_cxx -eq 0],
110110
[ACSM_TEST_CXX_ALL])
111111
AS_IF([test "$HAVE_CXX17" = "1" -a "x$have_cxx_all"=xyes],
112112
[
@@ -123,7 +123,7 @@ dnl still "count" as earlier standards too.
123123
AS_IF([test 2014 -gt "$acsm_CXX_STD_MIN"],
124124
[AX_CXX_COMPILE_STDCXX([14],[$3],[optional])],
125125
[AX_CXX_COMPILE_STDCXX([14],[$3],[mandatory])])
126-
AS_IF([test $acsm_found_cxx -eq 0],
126+
AS_IF([test "$HAVE_CXX14" = "1" -a $acsm_found_cxx -eq 0],
127127
[ACSM_TEST_CXX_ALL])
128128
AS_IF([test "$HAVE_CXX14" = "1" -a "x$have_cxx_all"=xyes],
129129
[
@@ -140,7 +140,7 @@ dnl still "count" as earlier standards too.
140140
AS_IF([test 2011 -gt "$acsm_CXX_STD_MIN"],
141141
[AX_CXX_COMPILE_STDCXX([11],[$3],[optional])],
142142
[AX_CXX_COMPILE_STDCXX([11],[$3],[mandatory])])
143-
AS_IF([test $acsm_found_cxx -eq 0],
143+
AS_IF([test "$HAVE_CXX11" = "1" -a $acsm_found_cxx -eq 0],
144144
[ACSM_TEST_CXX_ALL])
145145
AS_IF([test "$HAVE_CXX11" = "1" -a "x$have_cxx_all"=xyes],
146146
[

0 commit comments

Comments
 (0)