From 4d453c6822fc62f85b058f3b936bace833dff263 Mon Sep 17 00:00:00 2001 From: Kamil Rakoczy Date: Tue, 17 Jan 2023 13:11:12 +0100 Subject: [PATCH] Fix to use same std flag in Verilator and Verilated design (#3881) --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 07d54be77..4a7eaa9df 100644 --- a/configure.ac +++ b/configure.ac @@ -543,6 +543,10 @@ if test "$_my_result" = "no" ; then AC_MSG_CHECKING(whether $CXX supports C++11 with $CFG_CXXFLAGS_STD_NEWEST) _MY_CXX_CHECK_CXX_VER() AC_MSG_RESULT($_my_result) +else + # CFG_CXXFLAGS_STD_NEWEST is also propagated to include/verilated.mk.in + # make sure we use the same std flag while compiling verilator and verilated design + CFG_CXXFLAGS_STD_NEWEST="" fi if test "$_my_result" = "no" ; then AC_MSG_NOTICE([[]])