gdmd(1)
π NAME π
okay so bestie, meet gdmd β it's a wrapper script for gdc that emulates the dmd command. that's the whole vibe. she's a translator, a hype-woman, a middle-manager between you and your compiler. π
(this page lives in the General Commands Manual, section 1, iykyk.)
β¨ SYNOPSIS β¨
gdmd files.d { -switch }
π OPTIONS π
here's the whole menu, no skips, no cuts, we're eating today π
files.dβ D source files π«Άfiles.diβ D interface filesfiles.oβ object files to link infiles.aβ library files to link in-archβ pass the-archoption togdc-cβ compile only, do not link-covβ do code coverage analysis-Dβ generate documentation β¨-Dddocdirβ write the documentation file to the docdir directory-Dffilenameβ write the documentation file to filename-dβ allow deprecated features (they're deprecated, but ok, go off)-debugβ compile in debug code-debug=levelβ compile in debug code<= level-debug=identβ compile in debug code identified by ident-debuglib=libβ debug library to use instead ofphobos-defaultlib=libβ default library to use instead ofphobos-deps=filenameβ write module dependencies to filename-f...β pass an-f...option togdc-fall-sourcesβ for every source file, semantically process each file preceding i-frameworkβ pass a-framework ...option togdc-gβ add symbolic debug info-gsβ always emit stack frame-Hβ generate a'header'file-Hdhdrdirβ write the'header'file to the hdrdir directory-Hffilenameβ write the'header'file to filename-Ipathβ where to look for imports- path is a
;separated list of paths. Multiple-I's can be used, and the paths are searched in the same order.
- path is a
-ignoreβ ignore unsupported pragmas π-inlineβ do function inlining-Jpathβ where to look for string imports-Llinkerflagβ pass linkerflag to the linker-libβ generate library-m...β pass an-m...option togdc-manβ open a web browser on the manual page-mapβ generate a linker.mapfile-noboundscheckβ turns off array bounds checking for all functions β οΈ-Oβ optimize π₯-o-β do not write object file-odobjdirβ write object files to the objdir directory-offilenameβ name the output file filename-opβ do not strip paths from source file-pipeβ use pipes instead of intermediate files-profileβ profile runtime performance-quietβ suppress unnecessary error messages π€«-q,<arg1>[,<arg2>,<arg3>,...]β pass the comma-separated arguments togdc-releaseβ compile release version-runβ run the resulting program, passing args-sharedβ generate shared library (DLL)-unittestβ compile in unit tests-vβ verbose-vdmdβ Print commands executed by this wrapper script--versionβ print compiler version and exit-h|--helpβ Print the usage information and exit-version=levelβ compile in version code>= levelversion=identβ compile in version code identified by ident-vtlsβ list all variables going into thread local storage-wβ enable warnings-wiβ enable informational warnings compile in version code identified by ident-Xβ generate JSON file-Xffilenameβ write JSON to filename
not me flagging this but the page literally glues two things together in -wi up there β both halves are staying exactly as written, no cap. π
π SEE ALSO π
π AUTHOR π
Copyright
(C) 2007 David Friedman
Maintained by:
(C) 2011 Iain Buclaw
and that's the whole page, bestie π¦ this was gdmd(1) from the General Commands Manual β that bottom-line tag is the source/version marker, so if you see gdmd(1) stamped on it, you know exactly which queen you're reading. slay, go compile something iconic ππΈ
π¦ where this page comes from
- debian bookworm: gdmd 2.100+git210818-1 Β· GPL-3.0-or-later
- debian trixie: gdmd 2.100+git240529-1 Β· GPL-3.0-or-later
- opensuse-leap 16.0: gdmd 20210818T144245-bp160.1.5 Β· BSL-1.0
- ubuntu jammy: gdmd 2.100+git200102-1 Β· GPL-3.0-or-later
- ubuntu noble: gdmd 2.100+git210818-1 Β· GPL-3.0-or-later
- ubuntu questing: gdmd 2.100+git240529-1
- ubuntu resolute: gdmd 2.100+git240529-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: gdmd 2.100+git240529-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms