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 Windows compilation of Verilator with spaces in the path (#6477). [Fabian Keßler-Schulz]
|
||||
* Fix PROTOTYPEMIS error on implicit logic (#6482). [Alex Solomatnikov]
|
||||
* Fix configure misdetecting C++14 (#6488). [Thomas O'Keeffe]
|
||||
|
||||
|
||||
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],
|
||||
[# _MY_CXX_CHECK_CXX_VER(flag) -- Check if compiler runs C++14
|
||||
# Set $_my_result
|
||||
AC_LINK_IFELSE(
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <thread>
|
||||
#if (__cplusplus < 201402L)
|
||||
# error "Too old"
|
||||
#endif
|
||||
], [[ ]])],
|
||||
[_my_result=yes
|
||||
if test -s conftest.err; then
|
||||
if grep -e "$1" conftest.err >/dev/null; then
|
||||
_my_result=no
|
||||
fi
|
||||
fi],
|
||||
], [[
|
||||
std::thread t([]{});
|
||||
t.join();
|
||||
]])],
|
||||
[_my_result=yes],
|
||||
[_my_result=no],
|
||||
[_my_result=no])
|
||||
])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue