Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Compiler Options

Jump to bottom Edit New page
ike709 edited this page Jun 1, 2025 * 7 revisions

Here is a list of optional arguments you can pass to the compiler:

  • --suppress-unimplemented - Suppresses most warnings related to unimplemented procs/vars. At the moment, using this is highly recommended unless you're actively trying to find things to implement.
  • --dump-preprocessor - Dumps the output of the preprocessor to a DM file in the same dir as the file you're compiling. Useful for debugging preprocessor errors.
  • --no-standard - Excludes the standard library. This will likely cause compilation to fail.
  • --verbose - The compiler will print more details about what it's currently doing. Mainly useful if you think you're getting stuck in an infinite loop.
  • --skip-bad-args - Passing an invalid arg to OpenDream will result in a compiler warning instead of a compiler error. This is to make life easier for developers, and will be removed when the compiler is more stable.
  • --notices-enabled - By default, OpenDream will suppress pragmas that are set to notice. Passing this arg un-suppresses them.
  • --version - Used to override the default DM_VERSION and DM_BUILD. Example usage: --version=514.1583
  • --print-code-tree - Prints the tree of types, procs, and vars assembled between parsing and compilation. This plays a major role in the order that global/static vars initialize.
  • --no-opts - Disables most compile-time optimizations of the DM code (e.g. const-folding). Mainly for debugging.

Clone this wiki locally