Thread overview | |||||
---|---|---|---|---|---|
|
October 04, 2013 Check for build errors with out actually building? | ||||
---|---|---|---|---|
| ||||
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 Re: Check for build errors with out actually building? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeremy DeHaan | 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 Re: Check for build errors with out actually building? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeremy DeHaan | 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. |
Copyright © 1999-2021 by the D Language Foundation