From cda5c6898d716974a1e82d269d5a4ff93fe0bc2c Mon Sep 17 00:00:00 2001 From: Ultibo Date: Mon, 28 Mar 2022 11:26:54 +1100 Subject: [PATCH] Update ConfigureRTL to set compiler and source paths in BuildRTL.ini (cherry picked from commit e741f9446ba56884ccec5917bed00e9e075f9632) --- ConfigureRTL/Main.pas | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ConfigureRTL/Main.pas b/ConfigureRTL/Main.pas index 4bfd0de..56acdf1 100644 --- a/ConfigureRTL/Main.pas +++ b/ConfigureRTL/Main.pas @@ -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);