From f4865a4bb2964386b5990d308bfaa5c8386aba96 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 22 Jan 2023 09:53:31 -0500 Subject: [PATCH] Fix configure; always look for std=c++17 rather than by distro. This backs out #606b35853b, which is believed no longer needed due to (#3881) being fixed. If this proves wrong and additional OS dependencies are needed, we should use a feature test macro so that the OS test doesn't need upkeep. --- configure.ac | 4 ---- 1 file changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac index 95234386e..e11c16461 100644 --- a/configure.ac +++ b/configure.ac @@ -354,12 +354,8 @@ AC_SUBST(CFG_CXXFLAGS_PROFILE) # gnu is required for Cygwin to compile verilated.h successfully #_MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=gnu++20) #_MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=c++20) -case "$(which lsb_release 2>&1 > /dev/null && lsb_release -d)" in -*Alpine*Linux* | *Arch*Linux* | *Ubuntu*22.04*) _MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=gnu++17) _MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=c++17) -;; -esac _MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=gnu++14) _MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=c++14) _MY_CXX_CHECK_SET(CFG_CXXFLAGS_STD_NEWEST,-std=gnu++11)