瀏覽代碼

Only print out cygwin DLL too old warning if using a cygwin GDB

git-svn-id: trunk@29731 -
pierre 10 年之前
父節點
當前提交
68c06ff84d
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      ide/fp.pas

+ 8 - 2
ide/fp.pas

@@ -367,8 +367,14 @@ BEGIN
   writeln(bullet+' GDB Version '+GDBVersion);
   writeln(bullet+' GDB Version '+GDBVersion);
  {$ifdef Windows}
  {$ifdef Windows}
   {$ifndef USE_MINGW_GDB}
   {$ifndef USE_MINGW_GDB}
-   writeln(bullet+' Cygwin "',GetCygwinFullName,'" version ',GetCygwinVersionString);
-   CheckCygwinVersion;
+   {$ifdef GDBMI}
+   { No reason to talk about cygwin DLL if we don't use it }
+   if using_cygwin_gdb then
+   {$endif GDBMI}
+     begin
+       writeln(bullet+' Cygwin "',GetCygwinFullName,'" version ',GetCygwinVersionString);
+       CheckCygwinVersion;
+     end;
   {$endif}
   {$endif}
  {$endif Windows}
  {$endif Windows}
 {$endif NODEBUG}
 {$endif NODEBUG}