mirror of https://gitlab.com/basile.b/dexed.git
compilers paths, add detection of LDC2 and GDC when extracted from rls archive
This commit is contained in:
parent
9cd9eefc91
commit
cd686732d7
|
@ -6,7 +6,7 @@ object CompilersPathsEditor: TCompilersPathsEditor
|
||||||
Caption = 'CompilersPathsEditor'
|
Caption = 'CompilersPathsEditor'
|
||||||
ClientHeight = 869
|
ClientHeight = 869
|
||||||
ClientWidth = 460
|
ClientWidth = 460
|
||||||
LCLVersion = '1.6.0.4'
|
LCLVersion = '1.6.4.0'
|
||||||
object ScrollBox1: TScrollBox
|
object ScrollBox1: TScrollBox
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 869
|
Height = 869
|
||||||
|
|
|
@ -693,13 +693,42 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCompilersPathsEditor.autoDetectGDC;
|
procedure TCompilersPathsEditor.autoDetectGDC;
|
||||||
|
var
|
||||||
|
path: string;
|
||||||
|
str: TStringList;
|
||||||
begin
|
begin
|
||||||
//TODO-cCompilerPaths: detect GDC
|
path := exeFullName('gdc' + exeExt);
|
||||||
|
if path.fileExists then
|
||||||
|
begin
|
||||||
|
fPaths.GdcExeName:= path;
|
||||||
|
str := TStringList.Create;
|
||||||
|
try
|
||||||
|
path := path.extractFileDir.extractFilePath;
|
||||||
|
FindAllDirectories(str, path, true);
|
||||||
|
for path in str do
|
||||||
|
if pos('include' + DirectorySeparator + 'd', path) > 0 then
|
||||||
|
begin
|
||||||
|
fPaths.GdcRuntimePath:= path;
|
||||||
|
break;
|
||||||
|
end;
|
||||||
|
finally
|
||||||
|
str.Free;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCompilersPathsEditor.autoDetectLDC;
|
procedure TCompilersPathsEditor.autoDetectLDC;
|
||||||
|
var
|
||||||
|
path: string;
|
||||||
begin
|
begin
|
||||||
//TODO-cCompilerPaths: detect LDC
|
path := exeFullName('ldc2' + exeExt);
|
||||||
|
if path.fileExists then
|
||||||
|
begin
|
||||||
|
fPaths.LdcExeName:= path;
|
||||||
|
path := path.extractFilePath.extractFilePath + DirectorySeparator + 'import';
|
||||||
|
if path.dirExists then
|
||||||
|
fPaths.LdcRuntimePath:=path;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
{$ENDREGION}
|
{$ENDREGION}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ end;
|
||||||
|
|
||||||
function demangle(const value: string): string;
|
function demangle(const value: string): string;
|
||||||
begin
|
begin
|
||||||
if demangler.active and (pos('_D', value) <> -1) then
|
if demangler.active and (pos('_D', value) > 0) then
|
||||||
begin
|
begin
|
||||||
demangler.output.Clear;
|
demangler.output.Clear;
|
||||||
demangler.demangle(value);
|
demangler.demangle(value);
|
||||||
|
|
Loading…
Reference in New Issue