Browse Source

regexpr: disable forced optimisation switch

This should be specifiable via (fp)make
Jonas Maebe 3 years ago
parent
commit
ae36829ecd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/regexpr/src/regexpr.pas

+ 2 - 2
packages/regexpr/src/regexpr.pas

@@ -69,7 +69,7 @@ interface
 {$BOOLEVAL OFF}
 {$EXTENDEDSYNTAX ON}
 {$LONGSTRINGS ON}
-{$OPTIMIZATION ON}
+{ OPTIMIZATION ON} // Handled by (fp)make options
 {$MODE DELPHI} // Delphi-compatible mode in FreePascal
 {$INLINE ON}
 {$DEFINE COMPAT}
@@ -6864,7 +6864,7 @@ begin
 end;
 
 {$IFDEF reRealExceptionAddr}
-{$OPTIMIZATION ON}
+{ OPTIMIZATION ON} // specified via (fp)make
 // ReturnAddr works correctly only if compiler optimization is ON
 // I placed this method at very end of unit because there are no
 // way to restore compiler optimization flag ...