Skip to content

Commit

Permalink
Change dependencies to build gprbuild, gnatcoll and Ada libraries usi…
Browse files Browse the repository at this point in the history
…ng the base compiler
  • Loading branch information
Fabien-Chouteau committed Nov 8, 2022
1 parent 021ee98 commit 59b04ac
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 34 deletions.
10 changes: 0 additions & 10 deletions specs/binutils.anod
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ class Binutils(spec("common")):
Anod.Dependency("isl", target="host"),
]

if self.env.is_canadian:
deps.append(
Anod.Dependency(
name="gcc",
host="build",
target="host",
local_name="canadian-cross-compiler",
)
)

return deps

def merge(self, prefix):
Expand Down
2 changes: 1 addition & 1 deletion specs/gnatcoll-bindings.anod
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GNATcollBindings(spec("common")):
@property
def build_deps(self):
deps = [
Anod.Dependency("gcc"),
Anod.Dependency("base_gcc"),
Anod.Dependency("gprbuild"),
Anod.Dependency("gnatcoll"),
Anod.Dependency("libgpr"),
Expand Down
2 changes: 1 addition & 1 deletion specs/gnatcoll.anod
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion specs/gnatcov.anod
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class GNATcov(spec("common")):
@property
def build_deps(self):
deps = [
Anod.Dependency("gcc", track=True),
Anod.Dependency("base_gcc", track=True),
Anod.Dependency("gprbuild", track=True),
Anod.Dependency("libgpr", track=True),
Anod.Dependency("gnatcoll", track=True),
Expand Down
2 changes: 1 addition & 1 deletion specs/gnatutil.anod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GNATUTIL(spec("common")):
@property
def build_deps(self):
return [
Anod.Dependency("gcc", track=True),
Anod.Dependency("base_gcc", track=True),
Anod.Dependency("gprbuild", track=True),
]

Expand Down
6 changes: 3 additions & 3 deletions specs/gprbuild.anod
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]

Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion specs/langkit_support.anod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class LangkikSupport(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("libgpr", track=True),
Anod.Dependency("gnatcoll", track=True),
Expand Down
2 changes: 1 addition & 1 deletion specs/libadalang.anod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Langkit(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("libgpr", track=True),
Anod.Dependency("gnatcoll", track=True),
Expand Down
2 changes: 1 addition & 1 deletion specs/libgpr.anod
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]
Expand Down
2 changes: 1 addition & 1 deletion specs/libgpr2.anod
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LibGPR2(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("libgpr", track=True),
Anod.Dependency("xmlada", track=True),
Expand Down
2 changes: 1 addition & 1 deletion specs/libiconv.anod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class LibIconv(spec("common")):

@property
def build_deps(self):
return [Anod.Dependency("gcc")]
return [Anod.Dependency("base_gcc")]

def setenv(self):
self.env.add_search_path(
Expand Down
12 changes: 1 addition & 11 deletions specs/xmlada.anod
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ class XMLAda(spec("common")):
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"))
deps.append(Anod.Dependency("base_gcc"))

return deps

Expand Down
2 changes: 1 addition & 1 deletion specs/zlib.anod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ZLib(spec("common")):

@property
def build_deps(self):
return [Anod.Dependency("gcc")]
return [Anod.Dependency("base_gcc")]

def setenv(self):
self.env.add_search_path(
Expand Down

0 comments on commit 59b04ac

Please sign in to comment.