coincidence, just sent out an email regarding this just today:<div><a href="http://forum.dlang.org/post/mailman.390.1369900211.13711.digitalmars-d@puremagic.com">http://forum.dlang.org/post/mailman.390.1369900211.13711.digitalmars-d@puremagic.com</a></div>
<div>"D based build system to replace current makefile"</div><div><br></div><div>Yes, no point in making the makefile more complicated, doing it in D is much easier/cleaner.<br><br><div class="gmail_quote">On Wed, May 29, 2013 at 9:04 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wednesday, May 29, 2013 23:30:12 Andrei Alexandrescu wrote:<br>
> I'm seeing this is phobos/posix.mak:<br>
><br>
> MODEL:=default<br>
> ifneq (default,$(MODEL))<br>
> MODEL_FLAG:=-m$(MODEL)<br>
> endif<br>
><br>
> I find it unpleasant that we have directories<br>
> generated/xxx/yyy/{32,64,default} of which default is identical to another.<br>
><br>
> Is there a simple and robust technique to detect the default model on a<br>
> given platform?<br>
<br>
</div>My first thought would be to compile a program and see what size size_t was,<br>
but I don't know feasible that is from inside of make. There's probably some<br>
way to get make to tell you, but I'm not very well versed in make.<br>
<br>
Timothee Cour has expressed interest in replacing all of the makefiles with D<br>
programs that do the build wth the idea that it would be easier to manage the<br>
various architectures and OSes that way. And if we did that, then all you'd<br>
have to do would be to check the size of size_t within the build script with<br>
size_t.sizeof.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></div></blockquote></div><br></div>