浏览代码

* 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 9 年之前
父节点
当前提交
3a4afab681
共有 1 个文件被更改,包括 5 次插入0 次删除
  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;