mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 22:40:30 +02:00
* 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:
parent
2cf8e50771
commit
3a4afab681
@ -1280,6 +1280,11 @@ unit scandir;
|
|||||||
value:=orgpattern;
|
value:=orgpattern;
|
||||||
UpdateTargetSwitchStr(name+'='+value,current_settings.targetswitches,current_module.in_global);
|
UpdateTargetSwitchStr(name+'='+value,current_settings.targetswitches,current_module.in_global);
|
||||||
end
|
end
|
||||||
|
else if c='-' then
|
||||||
|
begin
|
||||||
|
current_scanner.readchar;
|
||||||
|
UpdateTargetSwitchStr(name+'-',current_settings.targetswitches,current_module.in_global);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
UpdateTargetSwitchStr(name,current_settings.targetswitches,current_module.in_global);
|
UpdateTargetSwitchStr(name,current_settings.targetswitches,current_module.in_global);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user