mirror of
https://github.com/verilator/verilator.git
synced 2025-01-22 06:14:02 +00:00
Fix configure selecting switches that give warnings.
This commit is contained in:
parent
6ed89b6ca5
commit
108c0f6bb8
@ -111,7 +111,12 @@ AC_DEFUN([_MY_CXX_CHECK_OPT],
|
|||||||
AC_MSG_CHECKING([whether $CXX accepts $2])
|
AC_MSG_CHECKING([whether $CXX accepts $2])
|
||||||
AC_COMPILE_IFELSE(
|
AC_COMPILE_IFELSE(
|
||||||
[AC_LANG_PROGRAM([],[])],
|
[AC_LANG_PROGRAM([],[])],
|
||||||
[_my_result=yes],
|
[_my_result=yes
|
||||||
|
if test -s conftest.err; then
|
||||||
|
if grep -e "$2" conftest.err >/dev/null; then
|
||||||
|
_my_result=no
|
||||||
|
fi
|
||||||
|
fi],
|
||||||
[_my_result=no])
|
[_my_result=no])
|
||||||
AC_MSG_RESULT($_my_result)
|
AC_MSG_RESULT($_my_result)
|
||||||
if test "$_my_result" = "yes" ; then
|
if test "$_my_result" = "yes" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user