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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:690:: with SMTP id 138mr6149674qkg.238.1588526049467; Sun, 03 May 2020 10:14:09 -0700 (PDT) X-Received: by 2002:a05:6830:19f7:: with SMTP id t23mr11944708ott.110.1588526049163; Sun, 03 May 2020 10:14:09 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 3 May 2020 10:14:08 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1114ad55-679d-4456-9a43-2e8337630064@googlegroups.com> Subject: Re: GPRBuild: Reuse Default_Switches from an imported project From: Jere Injection-Date: Sun, 03 May 2020 17:14:09 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58568 Date: 2020-05-03T10:14:08-07:00 List-Id: 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.