comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jhb.chat@gmail.com>
Subject: Re: GPRBuild: Reuse Default_Switches from an imported project
Date: Sun, 3 May 2020 10:14:08 -0700 (PDT)
Date: 2020-05-03T10:14:08-07:00	[thread overview]
Message-ID: <1114ad55-679d-4456-9a43-2e8337630064@googlegroups.com> (raw)
In-Reply-To: <c32faa76-0ef8-446c-98b1-7fb3f5134da4@googlegroups.com>

On Sunday, May 3, 2020 at 1:08:47 PM UTC-4, Jere wrote:
> I have an embedded library X that I want to import into 
> a project Y.  In project X I have (among other things)
> 
>
> For reference I am trying the syntax:
> 
>    package Compiler is
> 
>       case Build_Mode is
> 
>          when "debug" =>
>             for Default_Switches ("ada") use X.Compiler.Default_Switches("ada");
> 
>          when "release" =>
>             for Default_Switches ("ada") use X.Compiler.Default_Switches("ada");
>             
>       end case;
> 
>    end Compiler;
> 
> I even tried putting them inside a set of parenthesis, but with no luck.
> I am guessing I need some way to indicate which case the default switches
> are from, but am unsure.  It may not even be possible.  Anyone know
> how to do this or if it possible

Just as a note, I realize in the example, that release and debug versions
look the exact same. I'm just simplifying the example.  I'll probably add
some additional switches for debug mode, so keep that in mind.

  reply	other threads:[~2020-05-03 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 17:08 GPRBuild: Reuse Default_Switches from an imported project Jere
2020-05-03 17:14 ` Jere [this message]
2020-05-03 19:58 ` Simon Wright
2020-05-03 21:15   ` Jere
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox