Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NOOPT make option to disable optimization
GCC recommends use of -Og for debug builds, which theoretically disables optimizations that will cause problems for debugging, but leaves some on to improve performance. Presently, in non-release builds, the Makefile always uses -Og if supported by the compiler. Unfortunately, it appears that even -Og permits control flow to -- from the standpoint of someone using a debugger -- not step a single line at a time when stepping, as lines may have been optimized out. Provide a make option NOOPT, so that if someone really needs -O0 builds, they can get them from the command line without patching the Makefile each time (and possibly letting that change slip into pull requests).
- Loading branch information