diff options
-rw-r--r-- | var/spack/repos/builtin/packages/zig/package.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/zig/package.py b/var/spack/repos/builtin/packages/zig/package.py index 6021933da1..9a576cdbb4 100644 --- a/var/spack/repos/builtin/packages/zig/package.py +++ b/var/spack/repos/builtin/packages/zig/package.py @@ -13,7 +13,8 @@ class Zig(CMakePackage): homepage = "https://ziglang.org/" git = "https://github.com/ziglang/zig.git" - version("0.7.1", tag="0.7.1") + version("0.9.1", tag="0.9.1") + version("0.7.1", tag="0.7.1", deprecated=True) variant( "build_type", @@ -23,5 +24,16 @@ class Zig(CMakePackage): ) depends_on("llvm@11.0.0: targets=all") + depends_on("llvm@13 targets=all", when="@0.9.1:") + + depends_on("git", type="build") + depends_on("ccache") provides("ziglang") + + def cmake_args(self): + return [ + self.define("ZIG_USE_CCACHE", True), + self.define("ZIG_STATIC_LLVM", True), + self.define("ZIG_STATIC_ZLIB", True), + ] |