Thread overview
Check for build errors with out actually building?
Oct 04, 2013
Jeremy DeHaan
Oct 04, 2013
Jeremy DeHaan
Oct 04, 2013
Adam D. Ruppe
October 04, 2013
So, I'm about to start working on a new project, but I want to be able to check for any D build errors without actually building anything. I was wondering if anything like this would be possible.
October 04, 2013
On Friday, 4 October 2013 at 17:49:49 UTC, Jeremy DeHaan wrote:
> So, I'm about to start working on a new project, but I want to be able to check for any D build errors without actually building anything. I was wondering if anything like this would be possible.

I'm dumb. I missed some stuff on the page for compiler information.

"dmd file.d -o- -c" does what I want!
October 04, 2013
If you did

dmd -c -o- *.d

that'd be as close as you can get (I think). -c means compile only, don't link, and -o- means don't write the object file, so it will skip the final part of building.

and *.d of course is the files in your project. Compiling them all at once by putting them all on the command line generally works best and fastest with compiling D.