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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Q: Multiple GNAT project files and object directories Date: Wed, 10 Jul 2013 13:37:11 +0100 Organization: A noiseless patient Spider Message-ID: References: <062c95f8-445d-49f1-8bd2-76481f146cf7@googlegroups.com> <51DD1B2F.1010105@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx05.eternal-september.org; posting-host="c8504a89c76ea11bda6664e6198ae3cd"; logging-data="31513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eEkyZHLEhBzL9gbBLz4x6bDcCeErU5CQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:Lveaq5LFFWbdiLbckpTDa+QKbEc= sha1:WUBIGufWOiFTn+cBuLVGaAgHfU0= Xref: news.eternal-september.org comp.lang.ada:16261 Date: 2013-07-10T13:37:11+01:00 List-Id: Pascal Obry writes: > Le 09/07/2013 23:42, Simon Wright a écrit : >> Are you sure that GNAT will recompile the 'with'ed projects? I don't >> believe I've ever seen it do so. > > Sure it does, except if the attribute Externally_Built is set. Or > alternatively the .ali are set read-only. It will rebuild if needed (the compiler has changed, or a source of the 'with'ed project has changed, or any other reason). But it won't rebuild if this project is built with ("-g", "-O0") and the 'with'ed project is built with ("-O2"), which is the sort of change that OP was talking about. (By "won't rebuild" I mean, I just tried it and it didn't).