Recent

Author Topic: {$optimization OFF  (Read 468 times)

Grahame Grieve

  • Sr. Member
  • ****
  • Posts: 365
{$optimization OFF
« on: March 05, 2024, 11:40:47 am »
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?


Nitorami

  • Hero Member
  • *****
  • Posts: 505

Grahame Grieve

  • Sr. Member
  • ****
  • Posts: 365
Re: {$optimization OFF
« Reply #2 on: March 05, 2024, 11:20:50 pm »
Thanks!

 

TinyPortal © 2005-2018