comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: How to check syntax with GNAT?
Date: Wed, 12 Jul 2017 09:08:55 -0700 (PDT)
Date: 2017-07-12T09:08:55-07:00	[thread overview]
Message-ID: <2e2f0287-6860-4165-b0b3-f0acceb13fcd@googlegroups.com> (raw)
In-Reply-To: <ojsjvj$acp$1@gioia.aioe.org>

On Sunday, July 9, 2017 at 1:54:46 AM UTC-5, Victor Porton wrote:
> From https://github.com/vporton/redland-bindings/blob/ada2012/ada/librdf.gpr
> 
>    package Builder is
>       case Debug_Mode is
>           when "check" =>
>              for Default_Switches ("Ada") use ("-gnatc");
>           when others =>
>              null;
>       end case;
>    end Builder;
> 
> But when I run `make my-check`, I get:
> 
> $ make my-check 
> gnatmake -p -Plibrdf.gpr \
>                  -XLIBRARY_KIND=static -XOBJ_DIR=./obj-static -
> Xsoversion=librdf-ada.so.2.0.14 -XMODE=Install -XDEBUG_MODE=check

We need to see your makefile to answer this. 

In addition, what version of GNAT are you using? 

You should probably be using gprbuild, not gnatmake.

To find out how to do a syntax only compile, execute "gnatmake --help" or "gprbuild --help" in a shell window under an editor and search for "syntax".


  reply	other threads:[~2017-07-12 16:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-09  6:54 How to check syntax with GNAT? Victor Porton
2017-07-12 16:08 ` Stephen Leake [this message]
2017-07-12 17:31   ` Victor Porton
2017-07-13  5:47 ` Simon Wright
replies disabled

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