From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM, PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:a54f:: with SMTP id o76mr5347608qke.95.1614625697886; Mon, 01 Mar 2021 11:08:17 -0800 (PST) X-Received: by 2002:a25:d843:: with SMTP id p64mr24310853ybg.339.1614625697378; Mon, 01 Mar 2021 11:08:17 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 1 Mar 2021 11:08:17 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=199.204.203.151; posting-account=XGCYegoAAADY19DGgU_zTfTSbVlfUJ_a NNTP-Posting-Host: 199.204.203.151 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: How to specify .cgpr file in .gpr file From: "philip...@gmail.com" Injection-Date: Mon, 01 Mar 2021 19:08:17 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61456 List-Id: I have a GNAT cross-toolchain setup that works fine. I have been using a g= eneric project file named default.gpr, which gprbuild will use automaticall= y, 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=3D/usr/local/gcc-aarch64-linux-gnu-muntsos-crosstool/s= hare/gpr/aarch64-linux-gnu.cgpr test_adc For working from the command line, passing --config=3Dblah to gprbuild to s= elect cross-compilation works perfectly well. But when using gps, it isn't= quite as convenient. Is there some way to move --config=3Dblah from the g= prbuild command line to the project file? I've looked through the gprbuild documentation but haven't found any obviou= s way to accomplish this. The Target attribute doesn't quite work, as my c= ross-compilation .cgpr files are not in a place known to gprbuild, and I'd = rather not mess with environment variables with gps.