* 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 -
This commit is contained in:
nickysn 2015-09-26 13:36:51 +00:00
parent 2cf8e50771
commit 3a4afab681

View File

@ -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;