From 3d178fb8180ea70644396a59b35560da5746b740 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Fri, 20 Oct 2023 17:19:17 +0200 Subject: [PATCH] Also build gprbuild, gnatcoll, libgpr, and xmlada from "base_gcc" --- specs/gnatcoll.anod | 2 +- specs/gprbuild.anod | 6 +++--- specs/libgpr.anod | 2 +- specs/xmlada.anod | 17 ++--------------- 4 files changed, 7 insertions(+), 20 deletions(-) diff --git a/specs/gnatcoll.anod b/specs/gnatcoll.anod index 7915e31..1aef9c8 100644 --- a/specs/gnatcoll.anod +++ b/specs/gnatcoll.anod @@ -32,7 +32,7 @@ class GNATcoll(spec("common")): @property def build_deps(self): return [ - Anod.Dependency("gcc", track=True), + Anod.Dependency("base_gcc", track=True), Anod.Dependency("gprbuild", track=True), Anod.Dependency("xmlada", track=True), Anod.Dependency("libgpr", track=True), diff --git a/specs/gprbuild.anod b/specs/gprbuild.anod index cccaaca..16f7d47 100644 --- a/specs/gprbuild.anod +++ b/specs/gprbuild.anod @@ -63,7 +63,7 @@ class GPRbuild(spec("gh-artifact")): @property def build_deps(self): deps = [ - Anod.Dependency("gcc", track=True), + Anod.Dependency("base_gcc", track=True), Anod.Dependency("gprconfig_kb", require="source_pkg", track=True), ] @@ -104,7 +104,7 @@ class GPRbuild(spec("gh-artifact")): ) def do_bootstrap(self): - for m in ["gcc"]: + for m in ["base_gcc"]: if m in self.deps: self.deps[m].setenv() @@ -138,7 +138,7 @@ class GPRbuild(spec("gh-artifact")): if self.bootstrap: return self.do_bootstrap() - for m in ["gcc", "xmlada", "gprbuild"]: + for m in ["base_gcc", "xmlada", "gprbuild"]: if m in self.deps: self.deps[m].setenv() diff --git a/specs/libgpr.anod b/specs/libgpr.anod index 8737e2f..a66afe4 100644 --- a/specs/libgpr.anod +++ b/specs/libgpr.anod @@ -34,7 +34,7 @@ class LibGPR(spec("common")): @property def build_deps(self): return [ - Anod.Dependency("gcc", track=True), + Anod.Dependency("base_gcc", track=True), Anod.Dependency("gprbuild", track=True), Anod.Dependency("xmlada", track=True), ] diff --git a/specs/xmlada.anod b/specs/xmlada.anod index 350ce7e..5d4a3cb 100644 --- a/specs/xmlada.anod +++ b/specs/xmlada.anod @@ -30,21 +30,8 @@ class XMLAda(spec("common")): @property def build_deps(self): - deps = [Anod.Dependency("gprbuild", qualifier="bootstrap")] - - if self.env.is_canadian: - deps.append( - Anod.Dependency( - name="gcc", - host="build", - target="host", - local_name="canadian-cross-compiler", - ) - ) - else: - deps.append(Anod.Dependency("gcc")) - - return deps + return [Anod.Dependency("gprbuild", qualifier="bootstrap"), + Anod.Dependency("base_gcc")] @Anod.primitive() def build(self):