diff options
| author | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-04-15 08:30:16 +0000 |
|---|---|---|
| committer | joost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2010-04-15 08:30:16 +0000 |
| commit | 3c7c80006f1061cdfb339067978fd4ef78f5cb26 (patch) | |
| tree | bdb114518890a8e6a4db5cae9f79c24c98ec7e20 /packages/fpmkunit | |
| parent | 9218cf069f745fb0f95a40ab5badd24cdb3faf9c (diff) | |
| download | fpc-3c7c80006f1061cdfb339067978fd4ef78f5cb26.tar.gz | |
* Include package name in warning when file is not found
* Do not try to compile files that do not exist, but raise an error
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15144 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fpmkunit')
| -rw-r--r-- | packages/fpmkunit/src/fpmkunit.pp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/fpmkunit/src/fpmkunit.pp b/packages/fpmkunit/src/fpmkunit.pp index 97774852f5..77387092d4 100644 --- a/packages/fpmkunit/src/fpmkunit.pp +++ b/packages/fpmkunit/src/fpmkunit.pp @@ -980,6 +980,7 @@ ResourceString SErrDependencyNotFound = 'Could not find unit directory for dependency package "%s"'; SErrAlreadyInitialized = 'Installer can only be initialized once'; SErrInvalidState = 'Invalid state for target %s'; + SErrCouldNotCompile = 'Could not compile target %s from package %s'; SWarnCircularTargetDependency = 'Warning: Circular dependency detected when compiling target %s with target %s'; SWarnCircularPackageDependency = 'Warning: Circular dependency detected when compiling package %s with package %s'; @@ -987,8 +988,8 @@ ResourceString SWarnFailedToGetTime = 'Warning: Failed to get timestamp from file "%s"'; SWarnFileDoesNotExist = 'Warning: File "%s" does not exist'; SWarnAttemptingToCompileNonNeutralTarget = 'Warning: Attempting to compile non-neutral target %s'; - SWarnSourceFileNotFound = 'Warning: Source file "%s" not found for %s'; - SWarnIncludeFileNotFound = 'Warning: Include file "%s" not found for %s'; + SWarnSourceFileNotFound = 'Warning: Source file "%s" from package %s not found for %s'; + SWarnIncludeFileNotFound = 'Warning: Include file "%s" from package %s not found for %s'; SWarnDepUnitNotFound = 'Warning: Dependency on unit %s is not supported for %s'; SInfoCompilingPackage = 'Compiling package %s'; @@ -3406,7 +3407,7 @@ Procedure TBuildEngine.ResolveFileNames(APackage : TPackage; ACPU:TCPU;AOS:TOS;D Log(vlDebug,SDbgResolvedSourceFile,[T.SourceFileName,T.TargetSourceFileName]) else begin - Log(vlWarning,SWarnSourceFileNotFound,[T.SourceFileName,MakeTargetString(ACPU,AOS)]); + Log(vlWarning,SWarnSourceFileNotFound,[T.SourceFileName,APackage.Name,MakeTargetString(ACPU,AOS)]); T.FTargetSourceFileName:=''; end; end; @@ -3444,7 +3445,7 @@ Procedure TBuildEngine.ResolveFileNames(APackage : TPackage; ACPU:TCPU;AOS:TOS;D Log(vlDebug,SDbgResolvedIncludeFile,[D.Value,D.TargetFileName]) else begin - Log(vlWarning,SWarnIncludeFileNotFound,[D.Value,MakeTargetString(ACPU,AOS)]); + Log(vlWarning,SWarnIncludeFileNotFound,[D.Value, APackage.Name, MakeTargetString(ACPU,AOS)]); D.TargetFileName:=''; end; end; @@ -3468,7 +3469,7 @@ Procedure TBuildEngine.ResolveFileNames(APackage : TPackage; ACPU:TCPU;AOS:TOS;D Log(vlDebug,SDbgResolvedSourceFile,[T.SourceFileName,T.TargetSourceFileName]) else begin - Log(vlWarning,SWarnSourceFileNotFound,[T.SourceFileName,MakeTargetString(ACPU,AOS)]); + Log(vlWarning,SWarnSourceFileNotFound,[T.SourceFileName, APackage.Name, MakeTargetString(ACPU,AOS)]); T.FTargetSourceFileName:=''; end; end; @@ -3607,6 +3608,9 @@ Var L,Args : TStringList; i : Integer; begin + if ATarget.TargetSourceFileName = '' then + Error(SErrCouldNotCompile,[ATarget.Name, APackage.Name]); + Args:=TStringList.Create; Args.Duplicates:=dupIgnore; |
