Ver Fonte

* fixed a bug in the $targetswitch directive, which prevented target switches
from being turned off (they were turned on instead)

git-svn-id: trunk@31832 -

nickysn há 9 anos atrás
pai
commit
3a4afab681
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      compiler/scandir.pas

+ 5 - 0
compiler/scandir.pas

@@ -1280,6 +1280,11 @@ unit scandir;
             value:=orgpattern;
             UpdateTargetSwitchStr(name+'='+value,current_settings.targetswitches,current_module.in_global);
           end
+        else if c='-' then
+          begin
+            current_scanner.readchar;
+            UpdateTargetSwitchStr(name+'-',current_settings.targetswitches,current_module.in_global);
+          end
         else
           UpdateTargetSwitchStr(name,current_settings.targetswitches,current_module.in_global);
       end;