I see a compiler command to put in source to turn optimisation to level 1-4 (at
https://wiki.freepascal.org/Optimization), but I don't see a way to turn it off completely?
Why am I asking? because there's a long standing problem with FPC for me that no one else seems to be cursed by, that assertion etc that I set in the project settings are overridden for some units when compiling, and I can just override that - I have - in my .inc file.
Maybe I need to do the same for optimisations?