How do I make a make target dependent on my compiler version?
Uri Moszkowicz via Boost-build <[email protected]> Thu, 29 Oct 2020 14:29:52 -0500
| Newsgroups | gmane.comp.lib.boost.build |
|---|---|
| Message-ID | <CAMJd5AQOCiPHSGq75u4AA4WQTHJ6S+WfyBr_zz8TUbpHpsz4Pg@mail.gmail.com> |
--===============5373647653322631010==
Content-Type: multipart/alternative; boundary="00000000000089c91a05b2d44e85"
--00000000000089c91a05b2d44e85
Content-Type: text/plain; charset="UTF-8"
Hi,
I have executables with compiler specific features work, like below.
exe myExe : src1.cc src2.cc : <toolset>gcc-6.0.0:<define>DEFINE1
exe myExe : src1.cc src2.cc : <toolset>gcc-10.0.0:<define>DEFINE2
I'm trying to do the same with a make target but it's not working.
make myMake : myExe : @user-config.link_install :
<toolset>gcc-6.0.0:<define>DEFINE1
<toolset>gcc-10.0.0:<define>DEFINE2
With these lines, I get "error: default build must be identical in all
alternatives".
Why doesn't this work for make like it does for exe?
Thanks,
Uri
--00000000000089c91a05b2d44e85
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi,<div>I have executables with compiler specific features=
work, like below.</div><div><br></div><div>=C2=A0 exe myExe : src1.cc src2=
.cc : <toolset>gcc-6.0.0:<define>DEFINE1</div><div>=C2=A0 exe m=
yExe : src1.cc src2.cc : <toolset>gcc-10.0.0:<define>DEFINE2</d=
iv><div><br></div><div>I'm trying to do the same with a make target but=
it's not working.</div><div><br></div><div>=C2=A0 make myMake : myExe =
: @user-config.link_install :</div><div>=C2=A0 =C2=A0 <toolset>gcc-6.=
0.0:<define>DEFINE1</div><div>=C2=A0 =C2=A0 <toolset>gcc-10.0.0=
:<define>DEFINE2</div><div><br></div><div>With these lines, I get &qu=
ot;error: default build must be identical in all alternatives".</div><=
div><br></div><div>Why doesn't this work for make like it does for exe?=
</div><div><br></div><div>Thanks,</div><div>Uri</div></div>
--00000000000089c91a05b2d44e85--
--===============5373647653322631010==
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
--===============5373647653322631010==--