Ver Fonte

* Do not use a buildunit when compiling intgdb, since it is not possible to compile single files in the BeforeCompile even when a buildunits is used.
* Add the .exe extension to gdbver(.exe) on Windows.

git-svn-id: trunk@20105 -

joost há 13 anos atrás
pai
commit
ee8268dd7f
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      packages/gdbint/fpmake.pp

+ 4 - 1
packages/gdbint/fpmake.pp

@@ -69,7 +69,7 @@ begin
       Installer.BuildEngine.Log(vlCommand,'GDB-lib found, compiling and running gdbver to obtain GDB-version');
       Installer.BuildEngine.Compile(P,GdbVerTarget);
       p.Targets.Delete(GdbVerTarget.Index);
-      Installer.BuildEngine.ExecuteCommand('src/gdbver','-o src/gdbver.inc');
+      Installer.BuildEngine.ExecuteCommand(AddProgramExtension('src/gdbver',HostOS),'-o src/gdbver.inc');
 
       // Pass -dUSE_MINGW_GDB to the compiler when a MinGW gdb is used
       if FileExists(GdbLibDir+PathDelim+MinGWGdbLibName) then
@@ -132,6 +132,9 @@ begin
     P.Email := '';
     P.Description := 'Interface to libgdb, the GDB debugger in library format';
     P.NeedLibC:= true;  // true for headers that indirectly link to libc?
+    // In case of using a buildunit, it is not possible to compile a single
+    // file within the BeforeCompile event.
+    P.SupportBuildModes:= [bmOneByOne];
 
     P.OSes:=[beos,haiku,freebsd,netbsd,openbsd,linux,win32,win64,go32v2];