digitalmars.D.learn - Check for build errors with out actually building?
- Jeremy DeHaan (3/3) Oct 04 2013 So, I'm about to start working on a new project, but I want to be
- Jeremy DeHaan (4/8) Oct 04 2013 I'm dumb. I missed some stuff on the page for compiler
- Adam D. Ruppe (8/8) Oct 04 2013 If you did
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
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
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