comp.lang.ada
 help / color / mirror / Atom feed
* How to specify .cgpr file in .gpr file
@ 2021-03-01 19:08 philip...@gmail.com
  0 siblings, 0 replies; only message in thread
From: philip...@gmail.com @ 2021-03-01 19:08 UTC (permalink / raw)


I have a GNAT cross-toolchain setup that works fine.  I have been using a generic project file named default.gpr, which gprbuild will use automatically, in my project directory.  So the command for a native compile is:

gprbuild -p  test_adc

And the command for a cross-compile for a Raspberry Pi 4 target is:

gprbuild -p --config=/usr/local/gcc-aarch64-linux-gnu-muntsos-crosstool/share/gpr/aarch64-linux-gnu.cgpr test_adc

For working from the command line, passing --config=blah to gprbuild to select cross-compilation works perfectly well.  But when using gps, it isn't quite as convenient.  Is there some way to move --config=blah from the gprbuild command line to the project file?

I've looked through the gprbuild documentation but haven't found any obvious way to accomplish this.  The Target attribute doesn't quite work, as my cross-compilation .cgpr files are not in a place known to gprbuild, and I'd rather not mess with environment variables with gps.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-01 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 19:08 How to specify .cgpr file in .gpr file philip...@gmail.com

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