meson: change default build type to "release" (#37436)

The same was done for CMake in #36679.
This commit is contained in:
Michael Kuhn 2023-05-05 10:35:40 +02:00 committed by GitHub
parent 35e1dc8eba
commit b2c3973d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -33,7 +33,7 @@ class MesonPackage(spack.package_base.PackageBase):
with when("build_system=meson"): with when("build_system=meson"):
variant( variant(
"buildtype", "buildtype",
default="debugoptimized", default="release",
description="Meson build type", description="Meson build type",
values=("plain", "debug", "debugoptimized", "release", "minsize"), values=("plain", "debug", "debugoptimized", "release", "minsize"),
) )

View File

@ -55,14 +55,6 @@ class Mesa(MesonPackage):
depends_on("expat") depends_on("expat")
depends_on("zlib@1.2.3:") depends_on("zlib@1.2.3:")
# Override the build type variant so we can default to release
variant(
"buildtype",
default="release",
description="Meson build type",
values=("plain", "debug", "debugoptimized", "release", "minsize"),
)
# Internal options # Internal options
variant("llvm", default=True, description="Enable LLVM.") variant("llvm", default=True, description="Enable LLVM.")