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,c62409bce056c38d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe13.ams2.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Thunderbird/3.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gps output directory mystery References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Wed, 27 Jan 2010 21:07:50 UTC Date: Wed, 27 Jan 2010 22:07:30 +0100 Xref: g2news1.google.com comp.lang.ada:8832 Date: 2010-01-27T22:07:30+01:00 List-Id: That is because you have selected the build mode optimize the profile is selected in a combo-box where the mode is selected, among the possible modes are: default use the project setting debug force use of -O0 -g optimize force use of -O2 -gnatn For a deeper discussion see: GPS Users guide: 9.3 The Build Mode 16.5.20.3 Defining new Modes /Per 2010-01-27 21:36, RasikaSrinivasan@gmail.com skrev: > I have a Project file that looks like: > > ..... > > for Source_Dirs use ("tests" > ,"tests/edge" > ,"tests/hist"); > for Object_Dir use ".objs"; > for Exec_Dir use "bin"; > > ..... > > Under Ubuntu using > > GPS 4.3.1 (20090114) hosted on i686-pc-linux-gnu > GNAT GPL 2009 (20090519) > > for some reason, the executables are built into bin/opt instead of > just bin. > > In fact when I say Build All the command line looks like: > > gnatmake -d -p -P/home/srini/Projects/projectlets/OpenCV/tests.gpr - > XBUILD=debug --subdirs=opt -cargs -O2 -gnatn > > ------------ > > I am not sure why the gnatmake contains a "--subdirs=opt" switch. > Anyone can throw any light on how this command line is constructed? > > Cheers, srini