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.
The advantage would be that you get to wire the options inside the script instead of requiring them in the invocation thereof.On 11/27/12 12:37 PM, jerro wrote:
Providing arbitrary compiler flags would already be a huge gain. So one
can pass libs, -I include paths, ...
You can already pass -I and -L and they are passed on to DMD (along with
any other flags that rdmd doesn't recognize AFAIK.
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.
Andrei