From: Per Sandberg <per.sandberg@bredband.net>
Subject: Re: gps output directory mystery
Date: Wed, 27 Jan 2010 22:07:30 +0100
Date: 2010-01-27T22:07:30+01:00 [thread overview]
Message-ID: <GW18n.107399$uV7.55661@newsfe13.ams2> (raw)
In-Reply-To: <bafc78be-bd01-4056-8112-3ebd4a349426@28g2000vbf.googlegroups.com>
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
next prev parent reply other threads:[~2010-01-27 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-27 20:36 gps output directory mystery RasikaSrinivasan@gmail.com
2010-01-27 21:07 ` Per Sandberg [this message]
2010-01-28 2:49 ` RasikaSrinivasan@gmail.com
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox