<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">&lt;<a href="mailto:boost-build@lists.boost.org" target="_blank">boost-build@lists.boost.org</a>&gt;</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>
&gt; The &quot;using&quot; rule is a convenience rule:<br>
&gt;<br>
&gt; using MODULE_NAME : field1 : field 2 : ... : field9 ;<br>
&gt;<br>
&gt; The above essentially does this:<br>
&gt;<br>
&gt; import MODULE_NAME ;<br>
&gt; MODULE_NAME.init field1 : field2 : ... : field9 ;<br>
&gt;<br>
&gt; So, if you look at the gcc.jam module, you&#39;ll notice that its init()<br>
&gt; rule&#39;s signature is this:<br>
&gt;<br>
&gt; rule init ( version ? : command * : options * )<br>
&gt;<br>
&gt; Thus, the using rule would be used like this:<br>
&gt;<br>
&gt; using gcc : $(valid-gcc-module-version-<wbr>string) :<br>
&gt; $(optional-command-to-gcc-exe) : $(options) ;<br>
&gt;<br>
&gt; Where $(options) can be something like &lt;root&gt;root/directory or<br>
&gt; &lt;flavor&gt;mingw.<br>
&gt;<br>
&gt; You can find the using() rule&#39;s definition in the toolset module.<br>
<br>
</span>thanks, but I don&#39;t think that answers any of the questions.<br>
Specifically, my last question was about the &#39;version&#39; 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&#39;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>