digitalmars.D.debugger - What compiler flags can be passed to a Dlang compiler
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
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
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
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