@@ -150,27 +150,32 @@ function TBDSCompiler.GetIDString: string;
150150 Result := ' D103R' ;
151151 ciD104S:
152152 Result := ' D104S' ;
153+ ciD11A:
154+ Result := ' D11A' ;
153155 else
154156 raise EBug.Create(ClassName + ' .GetIDString: Invalid ID' );
155157 end ;
156158end ;
157159
158160function TBDSCompiler.GetName : string;
159161resourcestring
160- sCompilerName = ' Delphi %d' ; // template for name of compiler
161- sDelphiXE = ' Delphi XE' ; // name of Delphi XE compiler
162- sDelphiXE2 = ' Delphi XE2' ; // name of Delphi XE2 compiler
163- sDelphiXE3 = ' Delphi XE3' ; // name of Delphi XE3 compiler
164- sDelphiXE4 = ' Delphi XE4' ; // name of Delphi XE4 compiler
165- sDelphiXE5 = ' Delphi XE5' ; // name of Delphi XE5 compiler
166- sDelphiXE6 = ' Delphi XE6' ; // name of Delphi XE6 compiler
167- sDelphiXE7 = ' Delphi XE7' ; // name of Delphi XE7 compiler
168- sDelphiXE8 = ' Delphi XE8' ; // name of Delphi XE8 compiler
169- sDelphi10S = ' Delphi 10 Seattle' ; // name of Delphi 10 compiler
170- sDelphi101B = ' Delphi 10.1 Berlin' ; // name of Delphi 10.1 compiler
171- sDelphi102T = ' Delphi 10.2 Tokyo' ; // name of Delphi 10.2 compiler
172- sDelphi103R = ' Delphi 10.3 Rio' ; // name of Delphi 10.3 compiler
173- sDelphi104S = ' Delphi 10.4 Sydney' ; // name of Delphi 10.4 compiler
162+ // template for name of compiler with simple integer version number
163+ sCompilerName = ' Delphi %d' ;
164+ // names of compilers not suitable for use with template
165+ sDelphiXE = ' Delphi XE' ;
166+ sDelphiXE2 = ' Delphi XE2' ;
167+ sDelphiXE3 = ' Delphi XE3' ;
168+ sDelphiXE4 = ' Delphi XE4' ;
169+ sDelphiXE5 = ' Delphi XE5' ;
170+ sDelphiXE6 = ' Delphi XE6' ;
171+ sDelphiXE7 = ' Delphi XE7' ;
172+ sDelphiXE8 = ' Delphi XE8' ;
173+ sDelphi10S = ' Delphi 10 Seattle' ;
174+ sDelphi101B = ' Delphi 10.1 Berlin' ;
175+ sDelphi102T = ' Delphi 10.2 Tokyo' ;
176+ sDelphi103R = ' Delphi 10.3 Rio' ;
177+ sDelphi104S = ' Delphi 10.4 Sydney' ;
178+ sDelphi11A = ' Delphi 11 Alexandria' ;
174179begin
175180 case GetID of
176181 ciDXE:
@@ -199,6 +204,8 @@ function TBDSCompiler.GetName: string;
199204 Result := sDelphi103R;
200205 ciD104S:
201206 Result := sDelphi104S;
207+ ciD11A:
208+ Result := sDelphi11A;
202209 else
203210 Result := Format(sCompilerName, [ProductVersion]);
204211 end ;
@@ -232,6 +239,7 @@ function TBDSCompiler.InstallationRegKey: string;
232239 ciD102T : Result := ' \Software\Embarcadero\BDS\19.0' ;
233240 ciD103R : Result := ' \Software\Embarcadero\BDS\20.0' ;
234241 ciD104S : Result := ' \Software\Embarcadero\BDS\21.0' ;
242+ ciD11A : Result := ' \Software\Embarcadero\BDS\22.0' ;
235243 else raise EBug.Create(ClassName + ' .InstallationRegKey: Invalid ID' );
236244 end ;
237245end ;
0 commit comments