Fix flex for build and link, limit gcc to 7 or greater (#41335)

This commit is contained in:
Dave Keeshan 2023-11-30 20:51:48 +00:00 committed by GitHub
parent a039dc16fa
commit e420441bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,11 +70,13 @@ class Verilator(AutotoolsPackage):
depends_on("libtool", type="build")
depends_on("help2man", type="build")
depends_on("bison", type="build")
depends_on("flex", type="build")
depends_on("flex")
depends_on("ccache", type=("build", "run"), when="@5.018:")
depends_on("perl", type=("build", "run"))
depends_on("bash", type="build")
conflicts("%gcc@:6", msg="C++14 support required")
# we need to fix the CXX and LINK paths, as they point to the spack
# wrapper scripts which aren't usable without spack
filter_compiler_wrappers("verilated.mk", relative_root="include")