Skip to content
Merged
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
7 changes: 6 additions & 1 deletion repos/spack_repo/builtin/packages/lfortran/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Lfortran(CMakePackage):

# The build process uses 'git describe --tags' to get the package version
version("main", branch="main", get_full_repo=True)
version("0.61.0", sha256="e832c1d76c371da7a7e11ef9e7b686d9047788136dcfb20093da5dc165fcd20f")
version("0.54.0", sha256="a46c44f8398ed0d14ca051a08982a3001642449c06a3be1c30944c3e027bbf51")
version("0.49.0", sha256="a9225fd33d34ce786f72a964a1179579caff62dd176a6a1477d2594fecdc7cd6")
version("0.30.0", sha256="aafdfbfe81d69ceb3650ae1cf9bcd8a1f1532d895bf88f3071fe9610859bcd6f")
Expand All @@ -38,6 +39,7 @@ class Lfortran(CMakePackage):

depends_on("python@3:", type="build", when="@main")
depends_on("cmake", type="build")
depends_on("cmake@3.22:", type="build", when="+kokkos")
depends_on("kokkos", type=("build", "run"), when="+kokkos")
depends_on("llvm@11:15", type=("build", "run"), when="@0.19.0+llvm")
depends_on("llvm@11:16", type=("build", "run"), when="@0.30.0+llvm")
Expand All @@ -46,6 +48,8 @@ class Lfortran(CMakePackage):
depends_on("re2c", type="build", when="@main")
depends_on("bison@:3.4", type="build", when="@main")
depends_on("binutils@2.38:", type="build", when="platform=linux")
depends_on("zstd")
Comment thread
junghans marked this conversation as resolved.
depends_on("libunwind")

def cmake_args(self):
args = [
Expand All @@ -54,7 +58,8 @@ def cmake_args(self):
self.define_from_variant("WITH_KOKKOS", "kokkos"),
]

if self.spec.satisfies("@0.54.0:"):
# Only call bootstrap script for git checkout
if self.spec.satisfies("@main"):
Comment thread
cessenat marked this conversation as resolved.
args.append("-DLFORTRAN_BUILD_ALL=yes")

return args
Loading