comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Building Matreshka on Windows
Date: Fri, 4 Nov 2016 09:37:25 -0700
Date: 2016-11-04T09:37:25-07:00	[thread overview]
Message-ID: <nvidfe$dbf$1@dont-email.me> (raw)
In-Reply-To: <ly37j78jd7.fsf@pushface.org>

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


  parent reply	other threads:[~2016-11-04 16:37 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-02 21:29 Building Matreshka on Windows Shark8
2016-11-03  8:18 ` Dmitry A. Kazakov
2016-11-03 15:32   ` Olivier Henley
2016-11-03 16:10     ` Dmitry A. Kazakov
2016-11-03 17:50       ` Simon Wright
2016-11-03 18:42         ` G.B.
2016-11-04  8:55           ` Simon Wright
2016-11-04  9:19             ` G.B.
2016-11-03 18:02       ` Olivier Henley
2016-11-03 20:18         ` Dmitry A. Kazakov
2016-11-03 22:39           ` gautier_niouzes
2016-11-04  8:28             ` Dmitry A. Kazakov
2016-11-04  8:57           ` G.B.
2016-11-04  9:29             ` Dmitry A. Kazakov
2016-11-04 13:28               ` Simon Wright
2016-11-04 16:08                 ` Dmitry A. Kazakov
2016-11-04 18:14                   ` Simon Wright
2016-11-04 16:37                 ` Jeffrey R. Carter [this message]
2016-11-04 18:19                   ` Simon Wright
2016-11-07  8:39                   ` Jacob Sparre Andersen
2016-11-07  8:50                     ` Simon Wright
2016-11-07  9:03                       ` Jacob Sparre Andersen
2016-11-29 15:22 ` Maxim Reznik
2016-11-29 23:49   ` Shark8
2016-11-30 11:45     ` Maxim Reznik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox