Fix configure misdetecting C++14 (#6488).
This commit is contained in:
parent
21dbdbf69d
commit
62880c125e
1
Changes
1
Changes
|
|
@ -72,6 +72,7 @@ Verilator 5.041 devel
|
||||||
* Fix splitting hierarchically referenced variables (#6475). [Ryszard Rozak, Antmicro Ltd.]
|
* Fix splitting hierarchically referenced variables (#6475). [Ryszard Rozak, Antmicro Ltd.]
|
||||||
* Fix Windows compilation of Verilator with spaces in the path (#6477). [Fabian Keßler-Schulz]
|
* Fix Windows compilation of Verilator with spaces in the path (#6477). [Fabian Keßler-Schulz]
|
||||||
* Fix PROTOTYPEMIS error on implicit logic (#6482). [Alex Solomatnikov]
|
* Fix PROTOTYPEMIS error on implicit logic (#6482). [Alex Solomatnikov]
|
||||||
|
* Fix configure misdetecting C++14 (#6488). [Thomas O'Keeffe]
|
||||||
|
|
||||||
|
|
||||||
Verilator 5.040 2025-08-30
|
Verilator 5.040 2025-08-30
|
||||||
|
|
|
||||||
15
configure.ac
15
configure.ac
|
|
@ -590,18 +590,17 @@ AC_SUBST(CFG_LIBS)
|
||||||
AC_DEFUN([_MY_CXX_CHECK_CXX_VER],
|
AC_DEFUN([_MY_CXX_CHECK_CXX_VER],
|
||||||
[# _MY_CXX_CHECK_CXX_VER(flag) -- Check if compiler runs C++14
|
[# _MY_CXX_CHECK_CXX_VER(flag) -- Check if compiler runs C++14
|
||||||
# Set $_my_result
|
# Set $_my_result
|
||||||
AC_LINK_IFELSE(
|
AC_RUN_IFELSE(
|
||||||
[AC_LANG_PROGRAM([#include <thread>
|
[AC_LANG_PROGRAM([#include <thread>
|
||||||
#if (__cplusplus < 201402L)
|
#if (__cplusplus < 201402L)
|
||||||
# error "Too old"
|
# error "Too old"
|
||||||
#endif
|
#endif
|
||||||
], [[ ]])],
|
], [[
|
||||||
[_my_result=yes
|
std::thread t([]{});
|
||||||
if test -s conftest.err; then
|
t.join();
|
||||||
if grep -e "$1" conftest.err >/dev/null; then
|
]])],
|
||||||
_my_result=no
|
[_my_result=yes],
|
||||||
fi
|
[_my_result=no],
|
||||||
fi],
|
|
||||||
[_my_result=no])
|
[_my_result=no])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue