mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:19:24 +02:00
* Fixed compilation of programs when using a buildunit
git-svn-id: trunk@22359 -
This commit is contained in:
parent
982c7ca9a9
commit
8459c12af7
@ -5384,7 +5384,7 @@ begin
|
||||
If Assigned(ATarget.BeforeCompile) then
|
||||
ATarget.BeforeCompile(ATarget);
|
||||
|
||||
if APackage.BuildMode=bmBuildUnit then
|
||||
if (APackage.BuildMode=bmBuildUnit) and not (ATarget.TargetType in [ttProgram,ttExampleProgram]) then
|
||||
begin
|
||||
APackage.FBUTarget.Dependencies.AddUnit(ATarget.Name).FTargetFileName:=ATarget.TargetSourceFileName;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user