From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gprbuild fun Date: Mon, 29 Jun 2015 12:10:25 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="6495"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198vfe/Qhuq0h3R/2kncyU0mBblMrIuq7Q=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:zk/GG1F2yQ9NzWRbJLmXB7nmJBM= sha1:fdSsmNtwmyl9e7mhsllIDRcUi+c= Xref: number.nntp.giganews.com comp.lang.ada:193838 Date: 2015-06-29T12:10:25+01:00 List-Id: Brian Drummond writes: > On Sun, 28 Jun 2015 18:28:13 +0100, Simon Wright wrote: > >> I have a mixed-language GPR like >> >> project build is >> for languages use ("ada", "c"); >> for source_files use ("a.adb", "c.c"); >> package ide is >> for compiler_command ("ada") use "gnatmake"; >> end ide; >> end build; > >> and, if I have the native gcc and arm-eabi-gcc present in the PATH, >> gprbuild chooses to use the native gcc for the Ada part and arm-eabi-gcc >> for the C part! >> >> Fix: delete the compiler_command line. > > Presumably, ... editing it to arm-eabi-gnatmake would also work? But I wanted the native version! --target=x86_64-apple-darwin13. Which I've never had to say before. As you suggest, for compiler_command ("ada") use "arm-eabi-gnatmake" works, in the sense of selecting a consistent set of tools. But the thing is, if you specify compiler_command, gprconfig is invoked with e.g. gprconfig --batch -o /Users/simon/tmp/gprbuild-problem/auto.cgpr --target=all --config=c,, --config=ada,,,,gnatmake but if you don't it's invoked with gprconfig --batch -o /Users/simon/tmp/gprbuild-problem/auto.cgpr --target=x86_64-darwin --config=c,, --config=ada,, So where did it get --target=all from?! (and come to that where did x86_64-darwin come from? x86_64-apple-darwin I would have understood)