comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Specifying an `--RTS` option in a GPR file, for a runtime library
Date: Tue, 16 Apr 2013 00:28:35 +0200
Date: 2013-04-16T00:28:35+02:00	[thread overview]
Message-ID: <op.wvlspxb0ule2fv@cardamome> (raw)
In-Reply-To: op.wvkxvpkuule2fv@cardamome

Here is something to check, which may explain why GNATMake and GPRBuild  
behave so differently.

http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html
In section “1.5.2 Using Library Projects”
(documentation says)
> All ALI files will also be copied from the objectdirectory to the  
> library directory. To build executables,gnatmake will use the library  
> rather than the individualobject files.

That's about use of library projects, but a runtime is a kind of library  
after‑all.


Le Mon, 15 Apr 2013 13:22:27 +0200, Yannick Duchêne (Hibou57)  
<yannick_duchene@yahoo.fr> a écrit:

> I tried with GNATMake, although it seems to not understand the project  
> file (it compiles files, but does not link an executable), I still tried.
>
>    * say `runtime` is in <dir>. If I run GNATMake from <dir> to
>      compile a `test.adb` file in <dir> too, seems to be OK
>      with the `--RTS=runtime` option.
>    * say a directory `source-test` is in <dir> and a `test.gpr`
>      is in <dir>, then it's not OK anymore, it says the `--RTS=runtime`
>      is not valid and is missing `adainclude` and `adalib`.
>    * With the same as above, but with an absolute path given
>      for the argument of the RTS options, GNATMake does not
>      complain any more.
>
> Trying the second and the third with GPRBuild, it complains in both case  
> (with either an absolute or relative path). The only way seems to  
> specifically assign `ADA_INCLUDE_PATH` and `ADA_OBJECTS_PATH`  
> environment variables, but this can't be done from a GPR file (or is so,  
> I don't know how to do).



-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2013-04-15 22:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-14 19:54 Specifying an `--RTS` option in a GPR file, for a runtime library Yannick Duchêne (Hibou57)
2013-04-14 20:07 ` Yannick Duchêne (Hibou57)
2013-04-14 20:36   ` Yannick Duchêne (Hibou57)
2013-04-15  8:19   ` Brian Drummond
2013-04-15 11:22     ` Yannick Duchêne (Hibou57)
2013-04-15 22:28       ` Yannick Duchêne (Hibou57) [this message]
2013-04-17 11:43       ` Brian Drummond
2013-04-18 22:10         ` Yannick Duchêne (Hibou57)
2013-04-15 13:27 ` Yannick Duchêne (Hibou57)
2013-04-15 13:29   ` Yannick Duchêne (Hibou57)
2013-04-23  1:26 ` Yannick Duchêne (Hibou57)
2013-04-23 17:22   ` Yannick Duchêne (Hibou57)
replies disabled

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