www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - What compiler flags can be passed to a Dlang compiler

reply tejas89 <tejasvansh144 gmail.com> writes:
What compiler flags can be passed to a Dlang compiler? Definition 
of compiler flag being something like say “—wall” or “—werror” 
for example. I’m not sure what is available for the language 
since I’m new to it and hope to learn D as one of languages 
alongside C, C++, Python, Kotlin.
Dec 06 2020
next sibling parent mw <mingwu gmail.com> writes:
On Sunday, 6 December 2020 at 11:48:34 UTC, tejas89 wrote:
 What compiler flags can be passed to a Dlang compiler? 
 Definition of compiler flag being something like say “—wall” or 
 “—werror” for example. I’m not sure what is available for the 
 language since I’m new to it and hope to learn D as one of 
 languages alongside C, C++, Python, Kotlin.
try: $ dmd -h
Dec 06 2020
prev sibling next sibling parent user1234 <user1234 12.fr> writes:
On Sunday, 6 December 2020 at 11:48:34 UTC, tejas89 wrote:
 What compiler flags can be passed to a Dlang compiler? 
 Definition of compiler flag being something like say “—wall” or 
 “—werror” for example. I’m not sure what is available for the 
 language since I’m new to it and hope to learn D as one of 
 languages alongside C, C++, Python, Kotlin.
for dmd it's "-g" to get dwarf info generated. Then; little help to get automatic break on exception: for DMD: $ -break-insert --function _d_throwdwarf for LDC: $ -break-insert --function _d_throw_exception
Dec 06 2020
prev sibling parent RSY <rsy_881 gmail.com> writes:
If you are using DUB, you can check this out 
https://dub.pm/package-format-json

Take a look at the "Build Options" section: 
https://dub.pm/package-format-json.html#build-options
Dec 08 2020