-
Notifications
You must be signed in to change notification settings - Fork 113
Compiler Options
wixoa edited this page Nov 12, 2024
·
6 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 tonotice
. Passing this arg un-suppresses them. -
--version
- Used to override the defaultDM_VERSION
andDM_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.