Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions srcpkgs/verilator/patches/skip-cpp-version-check.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/configure.ac b/configure.ac
index 9ae4d293d..d2256ed66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -825,30 +825,6 @@ AC_DEFUN([_MY_CXX_CHECK_CXX_VER],
[_my_result=no])
])

-# Add $CFG_CXXFLAGS_STD only if can't compile correctly otherwise,
-# as adding std= when not needed can cause errors with the C++ std library.
-CFG_CXXFLAGS_STD=$CFG_CXXFLAGS_STD_NEWEST
-AC_MSG_CHECKING(whether $CXX supports C++14)
-_MY_CXX_CHECK_CXX_VER()
-AC_MSG_RESULT($_my_result)
-if test "$_my_result" = "no" ; then
- CXXFLAGS="$CXXFLAGS $CFG_CXXFLAGS_STD"
- CFG_CXX_FLAGS_CMAKE="$CFG_CXX_FLAGS_CMAKE $CFG_CXXFLAGS_STD"
- AC_MSG_CHECKING(whether $CXX supports C++14 with $CFG_CXXFLAGS_STD)
- _MY_CXX_CHECK_CXX_VER()
- AC_MSG_RESULT($_my_result)
-else
- # CFG_CXXFLAGS_STD 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=""
-fi
-if test "$_my_result" = "no" ; then
- AC_MSG_NOTICE([[]])
- AC_MSG_ERROR([[the $CXX compiler appears to not support C++14.
-
-Verilator requires a C++14 or newer compiler.]])
-
-fi
AC_SUBST(CFG_CXXFLAGS_STD)

# Compiler precompiled header options (assumes either gcc or clang++)

9 changes: 5 additions & 4 deletions srcpkgs/verilator/template
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Template file for 'verilator'
pkgname=verilator
version=4.222
version=5.052
revision=1
build_style=gnu-configure
hostmakedepends="autoconf flex python3"
hostmakedepends="autoconf flex help2man python3"
makedepends="libfl-devel"
short_desc="SystemVerilog simulator and lint system"
maintainer="Sasha Krassovsky <krassovskysasha@gmail.com>"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-only"
homepage="https://veripool.org/wiki/verilator"
changelog="https://raw.githubusercontent.com/verilator/verilator/refs/heads/master/Changes"
distfiles="https://github.com/verilator/verilator/archive/v${version}.tar.gz"
checksum=15c60175807c0f3536c3c5b435f131c2b1e8725aefd30645efd946bf401b4c84
checksum=8c8d2e11e6ad32f641dd250742a94195ddecb912e2e2dabe2f42ddbbb99c1092

pre_configure() {
autoconf
Expand Down
Loading