mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 03:38:20 +02:00
IDE: Use again the blfOnlyIDE flag which was removed earlier. Fixes building Lazarus (?)
git-svn-id: trunk@32866 -
This commit is contained in:
parent
7d8796f113
commit
92e8c1695c
@ -64,6 +64,7 @@ type
|
||||
|
||||
TBuildLazarusFlag = (
|
||||
blfDontBuild, // skip all building, only cleaning
|
||||
blfOnlyIDE, // skip all but IDE (for example build IDE, but not examples)
|
||||
blfDontCleanAll, // ignore clean up
|
||||
blfUseMakeIDECfg, // append @idemake.cfg
|
||||
blfReplaceExe // ignore OSLocksExecutables and do not create lazarus.new.exe
|
||||
@ -235,8 +236,7 @@ begin
|
||||
Tool.ScanOutputForMakeMessages:=true;
|
||||
|
||||
// clean up
|
||||
if Options.CleanAll
|
||||
and ([blfDontCleanAll]*Flags=[]) then begin
|
||||
if Options.CleanAll and ([blfDontCleanAll,blfOnlyIDE]*Flags=[]) then begin
|
||||
WorkingDirectory:=EnvironmentOptions.LazarusDirectory;
|
||||
if not CheckDirectoryWritable(WorkingDirectory) then exit(mrCancel);
|
||||
|
||||
@ -256,7 +256,7 @@ begin
|
||||
|
||||
// build every item
|
||||
if not (blfDontBuild in Flags) then begin
|
||||
WorkingDirectory:=TrimFilename(EnvironmentOptions.LazarusDirectory+PathDelim);
|
||||
WorkingDirectory:=EnvironmentOptions.LazarusDirectory;
|
||||
if (blfDontCleanAll in Flags) and (Options.IdeBuildMode=bmCleanBuild) then
|
||||
Options.IdeBuildMode:=bmBuild;
|
||||
Tool.Title:=lisIDE;
|
||||
|
@ -12154,7 +12154,7 @@ begin
|
||||
|
||||
// save extra options
|
||||
Result:=SaveIDEMakeOptions(MiscellaneousOptions.BuildLazProfiles,
|
||||
GlobalMacroList,PkgOptions,Flags);
|
||||
GlobalMacroList,PkgOptions,Flags+[blfOnlyIDE]);
|
||||
if Result<>mrOk then exit;
|
||||
end;
|
||||
|
||||
@ -12222,9 +12222,8 @@ begin
|
||||
PackageGraph.FirstAutoInstallDependency,InheritedOptionStrings);
|
||||
|
||||
// check ambiguous units
|
||||
CodeToolBoss.GetFPCVersionForDirectory(
|
||||
EnvironmentOptions.LazarusDirectory,
|
||||
FPCVersion,FPCRelease,FPCPatch);
|
||||
CodeToolBoss.GetFPCVersionForDirectory(EnvironmentOptions.LazarusDirectory,
|
||||
FPCVersion,FPCRelease,FPCPatch);
|
||||
if FPCPatch=0 then ;
|
||||
CompiledUnitExt:=GetDefaultCompiledUnitExt(FPCVersion,FPCRelease);
|
||||
Result:=MainBuildBoss.CheckUnitPathForAmbiguousPascalFiles(
|
||||
|
@ -3604,7 +3604,7 @@ begin
|
||||
end;
|
||||
|
||||
// save IDE build configs, so user can build IDE on command line
|
||||
BuildIDEFlags:=[blfDontCleanAll];
|
||||
BuildIDEFlags:=[blfDontCleanAll,blfOnlyIDE];
|
||||
Result:=MainIDE.DoSaveBuildIDEConfigs(BuildIDEFlags);
|
||||
if Result<>mrOk then exit;
|
||||
|
||||
@ -3685,7 +3685,7 @@ begin
|
||||
end;
|
||||
|
||||
// save IDE build configs, so user can build IDE on command line
|
||||
BuildIDEFlags:=[blfDontCleanAll];
|
||||
BuildIDEFlags:=[blfDontCleanAll,blfOnlyIDE];
|
||||
Result:=MainIDE.DoSaveBuildIDEConfigs(BuildIDEFlags);
|
||||
if Result<>mrOk then exit;
|
||||
|
||||
@ -3920,7 +3920,7 @@ begin
|
||||
SaveAutoInstallDependencies;
|
||||
|
||||
// save IDE build configs, so user can build IDE on command line
|
||||
BuildIDEFlags:=[blfDontCleanAll];
|
||||
BuildIDEFlags:=[blfDontCleanAll,blfOnlyIDE];
|
||||
if MainIDE.DoSaveBuildIDEConfigs(BuildIDEFlags)<>mrOk then exit(mrCancel);
|
||||
|
||||
if piiifRebuildIDE in Flags then // rebuild Lazarus
|
||||
|
Loading…
Reference in New Issue
Block a user