mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 04:29:25 +02:00
IDE: fixed IDE restart when project is set to cross compile, issue #36142
git-svn-id: trunk@62022 -
This commit is contained in:
parent
cd76eb1ef2
commit
9c7ef38222
@ -2895,6 +2895,8 @@ begin
|
||||
end;
|
||||
|
||||
function TBuildManager.BuildTargetIDEIsDefault: boolean;
|
||||
// check if current BuildLazarus creates the normal lazarus exe
|
||||
// aka not some cross compile
|
||||
var
|
||||
NewTargetOS: String;
|
||||
NewTargetCPU: String;
|
||||
@ -2908,8 +2910,8 @@ begin
|
||||
//debugln(['TBuildManager.BuildTargetIDEIsDefault NewTargetOS=',NewTargetOS,' Default=',GetDefaultTargetOS,' NewTargetCPU=',NewTargetCPU,' default=',GetDefaultTargetCPU,' ws=',LCLPlatformDisplayNames[NewLCLWidgetSet],' default=',LCLPlatformDisplayNames[GetDefaultLCLWidgetType]]);
|
||||
Result:=((NewTargetOS='') or (NewTargetOS=GetCompiledTargetOS))
|
||||
and ((NewTargetCPU='') or (NewTargetCPU=GetCompiledTargetCPU))
|
||||
and (NewLCLWidgetSet<>lpNoGUI)
|
||||
and (GetCompilerFilename=EnvironmentOptions.GetParsedCompilerFilename);
|
||||
and (NewLCLWidgetSet<>lpNoGUI);
|
||||
// Note: no need to check if CompilerFilename is the default
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user