2
0
Эх сурвалжийг харах

* Do not use the CPU in the unit-output directory on OSes that use 8.3
filenames.
* Add the search for the unit-output directory to the debug log

git-svn-id: trunk@18163 -

joost 14 жил өмнө
parent
commit
b160aed929

+ 6 - 2
packages/fpmkunit/src/fpmkunit.pp

@@ -118,6 +118,7 @@ Const
   AllUnixOSes  = [Linux,FreeBSD,NetBSD,OpenBSD,Darwin,QNX,BeOS,Solaris,Haiku,iphonesim];
   AllBSDOSes      = [FreeBSD,NetBSD,OpenBSD,Darwin,iphonesim];
   AllWindowsOSes  = [Win32,Win64,WinCE];
+  AllLimit83fsOses= [go32v2,os2,emx,watcom];
 
   AllSmartLinkLibraryOSes = [Linux]; // OSes that use .a library files for smart-linking
 
@@ -1633,7 +1634,10 @@ end;
 Function MakeTargetString(CPU : TCPU;OS: TOS) : String;
 
 begin
-  Result:=CPUToString(CPU)+'-'+OSToString(OS);
+  if OS in AllLimit83fsOses then
+    Result := OSToString(OS)
+  else
+    Result:=CPUToString(CPU)+'-'+OSToString(OS);
 end;
 
 Procedure StringToCPUOS(const S : String; Var CPU : TCPU; Var OS: TOS);
@@ -4235,7 +4239,7 @@ begin
               APackage.UnitDir := IncludeTrailingPathDelimiter(APackage.UnitDir) + APackage.GetUnitsOutputDir(Defaults.CPU,Defaults.OS);
               // If the unit-directory does not exist, you know for sure that
               // the package is not compiled
-              if not DirectoryExists(APackage.UnitDir) then
+              if not SysDirectoryExists(APackage.UnitDir) then
                 APackage.UnitDir:=DirNotFound
               else
                 APackage.FTargetState:=tsCompiled;