From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:e408:: with SMTP id y8mr21743909qkf.39.1580212672703; Tue, 28 Jan 2020 03:57:52 -0800 (PST) X-Received: by 2002:a9d:6304:: with SMTP id q4mr16170853otk.332.1580212672292; Tue, 28 Jan 2020 03:57:52 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no7222576qtd.0!news-out.google.com!w29ni794qtc.0!nntp.google.com!g89no7222570qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Jan 2020 03:57:51 -0800 (PST) In-Reply-To: <19573556-c9bc-4703-aac3-9d655537627e@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=91.169.209.222; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 91.169.209.222 References: <033b9157-cc60-42cd-a7a8-ee4313029752@googlegroups.com> <3500a9de-3d02-4e8b-b75a-09ea5dc28570@googlegroups.com> <19573556-c9bc-4703-aac3-9d655537627e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gpr and Makefiles From: briot.emmanuel@gmail.com Injection-Date: Tue, 28 Jan 2020 11:57:52 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57973 Date: 2020-01-28T03:57:51-08:00 List-Id: gprbuild is pretty weak for generated code. When I was working at AdaCore, we had made a nice design to properly handle= this, but I don't know what happened to that design. Here, you are trying to generate Ada code. So when you start gprbuild, it m= ight quickly compile a unit that depends on one of the generated Ada packag= es, without having generated them already. In practice, you end up having t= o run gprbuild multiple times (once to generate the files, then to compile = everything). A proper build tool should be able to handle that automatically in one pass= , just by having a full graph of dependencies.