<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 15, 2017 at 10:23 AM, Stefan Seefeld via Boost-build <span dir="ltr"><<a href="mailto:boost-build@lists.boost.org" target="_blank">boost-build@lists.boost.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aaron,<br> <span class=""><br> On 15.02.2017 11:18, Aaron Boman via Boost-build wrote:<br> > The "using" rule is a convenience rule:<br> ><br> > using MODULE_NAME : field1 : field 2 : ... : field9 ;<br> ><br> > The above essentially does this:<br> ><br> > import MODULE_NAME ;<br> > MODULE_NAME.init field1 : field2 : ... : field9 ;<br> ><br> > So, if you look at the gcc.jam module, you'll notice that its init()<br> > rule's signature is this:<br> ><br> > rule init ( version ? : command * : options * )<br> ><br> > Thus, the using rule would be used like this:<br> ><br> > using gcc : $(valid-gcc-module-version-<wbr>string) :<br> > $(optional-command-to-gcc-exe) : $(options) ;<br> ><br> > Where $(options) can be something like <root>root/directory or<br> > <flavor>mingw.<br> ><br> > You can find the using() rule's definition in the toolset module.<br> <br> </span>thanks, but I don't think that answers any of the questions.<br> Specifically, my last question was about the 'version' argument to the<br> gcc.init() function. Is it used to identify a compiler by version ? Or<br> can it be an arbitrary string / discriminator I use to configure<br> compilers with different flags (e.g. `--std=c++11` vs. `--std=c++03`) ?<br></blockquote><div><br></div><div>For gcc it can be an arbitrary string. If I understand the python init code correctly, which is a challenge even for me, for python it must be the version of the interpreter (ie it checks that it matches).</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- Rene Rivera<br>-- Grafik - Don't Assume Anything<br>-- Robot Dreams - <a href="http://robot-dreams.net/" target="_blank">http://robot-dreams.net</a><br>-- rrivera/<a href="http://acm.org/" target="_blank">acm.org</a> (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail</div></div> </div></div>