I didn't see a single example of build script usage where it wasn't tied to the sources and where the sources could be easily compiled without it. The sources define what the binary will look like and so do the build scripts. That's why I think it's a good idea to combine them.<div>
<br></div><div>As for the question "where to put those comments?":</div><div>There was an enhancement issue in bugzilla about allowing modules to be named "package" in which case they are imported by their package name alone. The build comments in those modules would be propagated to the entire package and the subpackages would be able to override.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 9:40 PM, Andrei Alexandrescu <span dir="ltr"><<a href="mailto:SeeWebsiteForEmail@erdani.org" target="_blank">SeeWebsiteForEmail@erdani.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 11/27/12 12:37 PM, jerro wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Providing arbitrary compiler flags would already be a huge gain. So one<br>
can pass libs, -I include paths, ...<br>
</blockquote>
<br>
You can already pass -I and -L and they are passed on to DMD (along with<br>
any other flags that rdmd doesn't recognize AFAIK.<br>
</blockquote>
<br></div></div>
The advantage would be that you get to wire the options inside the script instead of requiring them in the invocation thereof.<br>
<br>
Again, --shebang does help there but my experience with it has been terrible: I recall on one OS the shebang line was silently truncated so some of my options were not passed although I was convinced they were.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Andrei<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>