Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General Flags: Flags that are always needed, such as warnings (-w) and directory inclusion (-J.), are added outside of the conditionals. Debug Flags: For DMD: When debugging is enabled (DEBUG=yes), the -debug flag for including debug code and -gs for generating standalone debug symbols are added. For LDC or other compilers: -d-debug for debugging and -gc for generating debugging information are added similarly when debugging is enabled. Optimization Flag: The -O flag is only added when debugging is not enabled. This ensures that the program is compiled with optimizations only when it is not in debug mode.
- Loading branch information