Skip to content

Commit

Permalink
Update ConfigureRTL to set compiler and source paths in BuildRTL.ini
Browse files Browse the repository at this point in the history
(cherry picked from commit e741f94)
  • Loading branch information
ultibohub committed Apr 15, 2022
1 parent 7b96ce9 commit cda5c68
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ConfigureRTL/Main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,14 @@ function CreateBuildRTL(const AName,AInstallPath,ACompilerVersion:String):Boolea
WorkBuffer:='';
WorkBuffer:=WorkBuffer + '[BuildRTL]' + LineEnd;
WorkBuffer:=WorkBuffer + 'CompilerVersion=' + ACompilerVersion + LineEnd;
{$IFDEF WINDOWS}
WorkBuffer:=WorkBuffer + 'CompilerPath=' + AInstallPath + 'fpc\' + ACompilerVersion + LineEnd;
WorkBuffer:=WorkBuffer + 'SourcePath=' + AInstallPath + 'fpc\' + ACompilerVersion + '\source' + LineEnd;
{$ENDIF}
{$IFDEF LINUX}
WorkBuffer:=WorkBuffer + 'CompilerPath=' + AInstallPath + 'fpc' + LineEnd;
WorkBuffer:=WorkBuffer + 'SourcePath=' + AInstallPath + 'fpc' + '/source' + LineEnd;
{$ENDIF}

{Set Size}
FileStream.Size:=Length(WorkBuffer);
Expand Down

0 comments on commit cda5c68

Please sign in to comment.