www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Check for build errors with out actually building?

reply "Jeremy DeHaan" <dehaan.jeremiah gmail.com> writes:
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.
Oct 04 2013
next sibling parent "Jeremy DeHaan" <dehaan.jeremiah gmail.com> writes:
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!
Oct 04 2013
prev sibling parent "Adam D. Ruppe" <destructionator gmail.com> writes:
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.
Oct 04 2013