justbuild: add v1.2.1 (#39679)

This commit is contained in:
Alberto Sartori 2023-08-29 21:23:22 +02:00 committed by GitHub
parent 6174b829f7
commit 0620b954be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def setup_build_environment(self, env):
+ ' "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"])
+ " }"