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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6458d1ee91b224ec X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.102.69 with SMTP id fm5mr1574136wib.0.1360440927993; Sat, 09 Feb 2013 12:15:27 -0800 (PST) Path: g1ni1309wig.0!nntp.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: chopping Ada source that have preprocessor symbols in them Date: Sat, 09 Feb 2013 20:15:35 +0000 Organization: A noiseless patient Spider Message-ID: References: <5111a9d5$0$6567$9b4e6d93@newsspool3.arcor-online.net> <85txpnm1vp.fsf@stephe-leake.org> <5114fb61$0$6561$9b4e6d93@newsspool4.arcor-online.net> <85ehgqkxnf.fsf@stephe-leake.org> <51168e7e$0$6566$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 Injection-Info: mx05.eternal-september.org; posting-host="0a6ca0935c728e617c1a2d4bdcfc6a33"; logging-data="21450"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/D7fd7T/OMZeSQDO2egcReewJdIa/9SEk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:eKJP/PXHR4C3fjeJ6YacoI+H9+4= sha1:cItQ5g6HYWttgWDV6WYibf5sFuw= Content-Type: text/plain Date: 2013-02-09T20:15:35+00:00 List-Id: Georg Bauhaus writes: > The problem is that running the chain of tools again and again is > prohibitively inefficient. It boils down to recompiling the world > after each edit. You could try the gnatmake (and, I think, gprbuild) flag -m: gnatmake: Specify that the minimum necessary amount of recompilations be performed. In this mode gnatmake ignores time stamp differences when the only modifications to a source file consist in adding/removing comments, empty lines, spaces or tabs. This means that if you have changed the comments in a source file or have simply reformatted it, using this switch will tell gnatmake not to recompile files that depend on it (provided other sources on which these files depend have undergone no semantic modifications). Note that the debugging information may be out of date with respect to the sources if the -m switch causes a compilation to be switched, so the use of this switch represents a trade-off between compilation time and accurate debugging information.