Errors compiling DSSS

jerro a at a.com
Fri Nov 30 11:35:37 PST 2012


On Friday, 30 November 2012 at 19:16:56 UTC, Rob T wrote:
> On Friday, 30 November 2012 at 17:59:23 UTC, jerro wrote:
>> It's easy to work around that. It's certainly orders of 
>> magnitude easier than parsing the source files. Besides, 
>> parsing them isn't even enough because imports can be inside 
>> static if blocks or templates. You need pretty much an entire 
>> D frontend to correctly find dependencies from source files.
>
> It may be easy, but it's not obvious, which makes it hard. 
> That's the problem with external builds.

If you are writing a build tool, I don't imagine writing those 
few extra lines to convert relative paths to absolute would be a 
problem.

> You make a very good point about the static ifs and so on, 
> which means the best place to get that kind of information is 
> directly from the compiler during the build process

And you already can get that info from the compiler using -deps 
flag.




More information about the Digitalmars-d mailing list