From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: [GNAT 2006] Project file and conditional withing/linking
Date: Fri, 09 Jun 2006 10:08:20 +0200
Date: 2006-06-09T10:08:20+02:00 [thread overview]
Message-ID: <4esohhF1g6citU1@individual.net> (raw)
In-Reply-To: 4esn72F1gdphpU1@individual.net
Alex R. Mosteo wrote:
> Simon Wright wrote:
>> We have defined environment-dependent symbols in non-source Projects
>> and then used the symbols to create the appropriate switches in the
>> user project. Something like
>>
>> package Linker is
>> case Use_Other_Package is
>> when Yes =>
>> for Default_Switches ("ada")
>> use ("-foo") & Other_Package.Linker_Switches;
>> when No =>
>> for Default_Switches ("ada") use ("-bar");
>> end case;
>> end Linker;
>
> I used to do this with the GAP 2005 release, but it seems the GAP/GPL 2006
> release will pass the linker options to gnatlink no matter what, once you
> with the project. Maybe this is the difference between Default_Switches
> and Linker_Options. Going to set up a test case.
For the record, I've just tested it: Using Default_Switches will not
propagate through projects unless you do the appending as in your example,
whereas using Linker_Options will pass these arguments to the linker just
by withing the project.
prev parent reply other threads:[~2006-06-09 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-08 2:37 [GNAT 2006] Project file and conditional withing/linking Alex R. Mosteo
2006-06-08 12:19 ` mor3b
2006-06-08 19:50 ` Simon Wright
2006-06-09 7:45 ` Alex R. Mosteo
2006-06-09 8:08 ` Alex R. Mosteo [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox