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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,15d78a51b0d35cec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!u39g2000pru.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: architecture-independent GNAT project files? Date: Thu, 30 Apr 2009 05:31:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: <837c3305-6589-4a5a-80cd-aff757015686@u39g2000pru.googlegroups.com> References: <75l5ceF18samiU1@mid.individual.net> <75mlktF1979j6U1@mid.individual.net> <1xrnblwdskgjg$.1v3turpillxav$.dlg@40tude.net> <75tj6jF19ngl2U1@mid.individual.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1241094682 31121 127.0.0.1 (30 Apr 2009 12:31:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 30 Apr 2009 12:31:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u39g2000pru.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5627 Date: 2009-04-30T05:31:21-07:00 List-Id: On Apr 30, 2:17=A0pm, Bj=F6rn Persson wrote: > Dmitry A. Kazakov wrote: [...] > > =A0 =A0package Ide is > > =A0 =A0 =A0 case Platform is > > =A0 =A0 =A0 =A0 =A0when "x86_Windows" =3D> > > =A0 =A0 =A0 =A0 =A0 =A0 for Gnatlist use "gnatls"; > > =A0 =A0 =A0 =A0 =A0 =A0 for Gnat use "gnat"; > > =A0 =A0 =A0 =A0 =A0 =A0 for Compiler_Command ("ada") use "gnatmake"; > > =A0 =A0 =A0 =A0 =A0 =A0 for Debugger_Command use "gdb"; > > =A0 =A0 =A0 =A0 =A0when "x86_VxWorks" =3D> > > =A0 =A0 =A0 =A0 =A0 =A0 for Gnatlist use "i586-wrs-vxworks-gnatls"; > > =A0 =A0 =A0 =A0 =A0 =A0 for Gnat use "i586-wrs-vxworks-gnat"; > > =A0 =A0 =A0 =A0 =A0 =A0 for Compiler_Command ("ada") use "i586-wrs-vxwo= rks-gnatmake"; > > =A0 =A0 =A0 =A0 =A0 =A0 for Debugger_Command use "i586-wrs-vxworks6-gdb= "; > > =A0 =A0 =A0 end case; > > =A0 =A0end Ide; > > > This changes gnatlist, gnat, gnatmake, everything... > > Is that a new feature that hasn't been merged into GCC yet? I don't see > those attributes in the GNAT User's Guide of GCC 4.4.0. > > Are those attributes only for GPS or does the "gnat" driver actually invo= ke > the VxWorks version of itself if you run > "gnat -P project -XPlatform=3Dx86_VxWorks"? > > I was thinking you'd run "i586-wrs-vxworks-gnatmake -P project" from a > command prompt, and i586-wrs-vxworks-gnatmake would set Platform > to "x86_VxWorks" (or more likely "i586-wrs-vxworks"). The package IDE in project files is for use by GPS; GPS parses it and uses the supplied command names when invoking the compiler, binder, linker etc. Gnatmake ignores this package, so your example wouldn't work. -- Ludovic Brenta.