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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Building Matreshka on Windows Date: Fri, 4 Nov 2016 09:37:25 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <3c41f737-a1d9-40a5-aea3-08c4b61baaa8@googlegroups.com> <753a3a53-4c3a-4c6f-9f9b-b7d1e5c5f24e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 4 Nov 2016 16:37:04 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b2c31f99088077c98a98ef9b8291a139"; logging-data="13679"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186+lUCd+o51YxJShJ6vJnDAL1ol2nwm2c=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:/KVEWK0mTZrOFqGaVvCH6dU9J2A= Xref: news.eternal-september.org comp.lang.ada:32247 Date: 2016-11-04T09:37:25-07:00 List-Id: On 11/04/2016 06:28 AM, Simon Wright wrote: > > I just don't understand what makes you say this. If you are happy with > gnatmake without GPRs, carry on and use it, with all the mess of -A* > swithces that you will certainly need a makefile or other script to > remember for you. gprbuild will work just as well, except of course that > you do have to have a project file. Why on earth would you need to look > at $prefix/share/gprconfig? Every Ada compiler includes a tool for building a system based on the dependency information in the code. This information is one of Ada's major strengths. One has to learn the parameters to this tool, of course, but then building becomes one line, easily stored somewhere, such as a script. So what does a program such as gprbuild buy you? You have to tell gnatmake where to find other things used in the system (-A*), but you do the same with gprbuild, in the form of paths in the withed projects. You have to supply the compiler switches, but you do the same with gprbuild, in the Switches declarations. You don't have to write the one-line script, but instead write a many-line project file. Personally, I don't see that gprbuild adds any value; in fact, it seems to subtract value: You supply the same information and have to have the same knowledge, but you have to know the syntax of a project file as well, so the effort is increased. For this reason, I never voluntarily use gprbuild for my projects (which are always all Ada), and don't understand why anyone would think it an advantage to do so. (Similar arguments apply against make.) -- Jeff Carter "If I could find a sheriff who so offends the citizens of Rock Ridge that his very appearance would drive them out of town ... but where would I find such a man? Why am I asking you?" Blazing Saddles 37