summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-08-29 21:23:22 +0200
committerGitHub <noreply@github.com>2023-08-29 15:23:22 -0400
commit0620b954be00274f4a1264c3a51ad7f1a313a449 (patch)
treed1f62249423e36aa3532f1b2bf6b537cd1b86e5c /var
parent6174b829f7cc6717398d04e03d5620ba2ddd52fd (diff)
downloadspack-0620b954be00274f4a1264c3a51ad7f1a313a449.tar.gz
spack-0620b954be00274f4a1264c3a51ad7f1a313a449.tar.bz2
spack-0620b954be00274f4a1264c3a51ad7f1a313a449.tar.xz
spack-0620b954be00274f4a1264c3a51ad7f1a313a449.zip
justbuild: add v1.2.1 (#39679)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/justbuild/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/justbuild/package.py b/var/spack/repos/builtin/packages/justbuild/package.py
index 7df61dd2f6..2251535dc8 100644
--- a/var/spack/repos/builtin/packages/justbuild/package.py
+++ b/var/spack/repos/builtin/packages/justbuild/package.py
@@ -22,6 +22,7 @@ class Justbuild(Package):
maintainers("asartori86")
version("master", branch="master")
+ version("1.2.1", tag="v1.2.1", commit="959cd90083d0c783389cd09e187c98322c16469f")
version("1.1.4", tag="v1.1.4", commit="32e96afd159f2158ca129fd00bf02c273d8e1e48")
version("1.1.3", tag="v1.1.3", commit="3aed5d450aec38be18edec822ac2efac6d49a938")
version("1.1.2", tag="v1.1.2", commit="67b486e2ce6ab657a98b2212a9b6f68935d07a29")
@@ -34,6 +35,10 @@ class Justbuild(Package):
def setup_build_environment(self, env):
ar = which("ar")
+ if self.spec.version < Version("1.2.1"):
+ family = ', "COMPILER_FAMILY":"unknown"'
+ else:
+ family = ', "TOOLCHAIN_CONFIG": {"FAMILY": "unknown"}'
if self.spec.satisfies("%gcc@10:"):
gcc = which("gcc")
gpp = which("g++")
@@ -43,7 +48,7 @@ class Justbuild(Package):
+ ' "CC":"{0}"'.format(gcc.path)
+ ', "CXX":"{0}"'.format(gpp.path)
+ ', "AR":"{0}"'.format(ar.path)
- + ', "COMPILER_FAMILY":"unknown"'
+ + family
+ ', "ENV":{'
+ ' "PATH":"{0}"'.format(os.environ["PATH"])
+ " }"