Pārlūkot izejas kodu

* 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 10 gadi atpakaļ
vecāks
revīzija
3a4afab681
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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;