<div dir="auto">Awesome, thanks! </div><div class="gmail_extra"><br><div class="gmail_quote">On 14 Jan 2018 10:40, "Boris Kolpackov" <<a href="mailto:boris@codesynthesis.com">boris@codesynthesis.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kalle Møller <<a href="mailto:build2.org@k-moeller.dk">build2.org@k-moeller.dk</a>> writes:<br>
<br>
> Trying to build from stage and doing the manual bootstrap (in x64 Native<br>
> Tools Command Shell). Building b-boot was no problem. The next stage gives<br>
> problems though<br>
><br>
> C:\Tools\Build2\build2-0.7.0-<wbr>a.0.1515401170.<wbr>8b07d68462c5fec9>build2\b-boot<br>
> config.cxx=cl config.bin.lib=static<br>
> config.import.libbutl=..\<wbr>libbutl-0.7.0-a.0.1515401218.<wbr>46b32368147e7975\<br>
> error: unable to execute g++: no such file or directory<br>
>   info: while applying rule alias to update dir{.\}<br>
<br>
Variable overrides specified on the command line have different scopes.<br>
The normal ones (like in the command line above) only apply to a project<br>
and its subprojects (actually, more precisely, to the entire amalgamation).<br>
As a result, because libbutl is outside the project you are trying to build,<br>
config.cxx, etc., do not apply to it.<br>
<br>
You can, however, make the override global by prefixing it with '!', for<br>
example (note that on POSIX one needs to quote '!'):<br>
<br>
b-boot !config.cxx=cl !config.bin.lib=static ...<br>
<br>
The build2's NEWS file has more details on variable overrides semantics<br>
(just search for 'override').<br>
<br>
<br>
> As a side note - I would love to build from git, but I can't get build2<br>
> (with cli installed) to build the INSTALL etc files.<br>
<br>
Yes, temporarily these are generated with a shell script which is not going<br>
to (easily) work on Windows. Hopefully we will be able to make this part of<br>
the build soon. You could probably just comment these dependencies out as<br>
a temporary hack.<br>
<br>
Boris<br>
</blockquote></div></div>