Переглянути джерело

Merged revisions 12496 via svnmerge from
svn+ssh://[email protected]/FPC/svn/fpc/trunk

........
r12496 | joost | 2009-01-03 23:36:09 +0100 (Sat, 03 Jan 2009) | 1 line

* While reading in the configuration file, handle select-options case-insensitive, so that -Tlinux is correctly recognized
........

git-svn-id: branches/fixes_2_2@12497 -

joost 16 роки тому
батько
коміт
74db1768da
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      ide/fpswitch.pas

+ 1 - 1
ide/fpswitch.pas

@@ -896,7 +896,7 @@ function TSwitches.ReadItemsCfg(const s:string):boolean;
     { empty items are not equivalent to others !! }
     { but -dGDB didn't work because of this PM }
     CheckItem:=((P^.Param='') and ((S='') or (P^.typ in [ot_Boolean,ot_String]))) or
-               ((Length(P^.Param)>0) and (P^.Param=S) and
+               ((Length(P^.Param)>0) and (upcase(P^.Param)=upcase(S)) and
                 not (P^.typ in [ot_Boolean,ot_String])) or
                ((Length(P^.Param)>0) and (P^.typ<>ot_Select) and
                 (P^.Param=Copy(s,1,length(P^.Param))));