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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: Re: How to check syntax with GNAT? Date: Wed, 12 Jul 2017 20:31:04 +0300 Organization: Aioe.org NNTP Server Message-ID: References: <2e2f0287-6860-4165-b0b3-f0acceb13fcd@googlegroups.com> NNTP-Posting-Host: i1vc24+njmQErCAdcylhNA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.14.10 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:47385 Date: 2017-07-12T20:31:04+03:00 List-Id: Stephen Leake wrote: > 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. https://github.com/vporton/redland-bindings/blob/ada2012/ada/Makefile.am > In addition, what version of GNAT are you using? GCC 7.1.0 on Debian Linux. > You should probably be using gprbuild, not gnatmake. What is the difference? Is gprbuild a newer version of gnatmake? What are their differences? > 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". I want to do it through .gpr file not through command line options. Moreover, I already know that it is -gnatc switch. -- Victor Porton - http://portonvictor.org