mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 04:19:28 +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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user