Re: Different options for debug and release in a toolset jam file

Rene Rivera via Boost-build <[email protected]> Sat, 7 Mar 2020 06:56:38 -0600
Newsgroups gmane.comp.lib.boost.build
Message-ID <CAHEh_GjisW0HdGFPDVRUkXy+3Fffp55RKta6DzNuO-DBDarrFA@mail.gmail.com>
--===============9143372421226616089==
Content-Type: multipart/alternative; boundary="0000000000009cf3aa05a0434d72"

--0000000000009cf3aa05a0434d72
Content-Type: text/plain; charset="UTF-8"

On Sat, Mar 7, 2020 at 3:29 AM Edward Diener via Boost-build <
[email protected]> wrote:

> How do I tell Boost Build to use different compiler or linker options,
> depending on whether the end-user is building some target in debug or
> release mode, in a compiler toolset's jam file ? The compiler toolset I
> am trying to create needs to specify, in particular, different library
> directories to search depending on whether the end-user is building a
> debug mode or release mode target. I know what those library directories
> should be for either for debug mode or release mode, and I understand
> how to pass the library directories as a variable to the compile or link
> action, but I do not understand how I tell Boost Build that when the
> action is building a target in release mode it should use the sequence
> of library directories for release mode and when the action is building
> a target in debug mode it should use the sequence of library directories
> for debug mode. Something tells me I have to create different
> conditions, one for release mode and one for debug mode, with the
> appropriate library directories, but I am not sure how this is done. Any
> help would be appreciated.
>

The usual way is to add "<variant>debug:<???>???" conditional properties to
a target. But I suspect this is not exactly what you are looking for :-\

-- 
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net

--0000000000009cf3aa05a0434d72
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Sat, Mar 7, 2020 at 3:29 AM Edward Die=
ner via Boost-build &lt;<a href=3D"mailto:[email protected]">boos=
[email protected]</a>&gt; wrote:<br></div><div class=3D"gmail_quote">=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">How do I tell Boost Build=
 to use different compiler or linker options, <br>
depending on whether the end-user is building some target in debug or <br>
release mode, in a compiler toolset&#39;s jam file ? The compiler toolset I=
 <br>
am trying to create needs to specify, in particular, different library <br>
directories to search depending on whether the end-user is building a <br>
debug mode or release mode target. I know what those library directories <b=
r>
should be for either for debug mode or release mode, and I understand <br>
how to pass the library directories as a variable to the compile or link <b=
r>
action, but I do not understand how I tell Boost Build that when the <br>
action is building a target in release mode it should use the sequence <br>
of library directories for release mode and when the action is building <br=
>
a target in debug mode it should use the sequence of library directories <b=
r>
for debug mode. Something tells me I have to create different <br>
conditions, one for release mode and one for debug mode, with the <br>
appropriate library directories, but I am not sure how this is done. Any <b=
r>
help would be appreciated.<br></blockquote><div><br></div><div>The usual wa=
y is to add &quot;&lt;variant&gt;debug:&lt;???&gt;???&quot; conditional pro=
perties to a target. But I suspect this is not exactly what you are looking=
 for :-\<br clear=3D"all"></div></div><br>-- <br><div dir=3D"ltr" class=3D"=
gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr">-- Rene Rivera<br>-=
- Grafik - Don&#39;t Assume Anything<br>-- Robot Dreams -=C2=A0<a href=3D"h=
ttp://robot-dreams.net/" target=3D"_blank">http://robot-dreams.net</a><br><=
br></div></div></div></div></div>

--0000000000009cf3aa05a0434d72--

--===============9143372421226616089==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build

--===============9143372421226616089==--