comp.lang.ada
 help / color / mirror / Atom feed
From: "philip...@gmail.com" <philip.munts@gmail.com>
Subject: How to specify .cgpr file in .gpr file
Date: Mon, 1 Mar 2021 11:08:17 -0800 (PST)	[thread overview]
Message-ID: <b3cd24b7-5975-4ffd-856e-4ad57a314ed9n@googlegroups.com> (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.

                 reply	other threads:[~2021-03-01 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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