Browse Source

Change default settings for i8086 compiler when compiled for go32v2 OS, to avoid use of Watcom tools

git-svn-id: trunk@39340 -
pierre 7 years ago
parent
commit
c654739db9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      compiler/fpcdefs.inc

+ 6 - 0
compiler/fpcdefs.inc

@@ -68,6 +68,12 @@
   {$define SUPPORT_GET_FRAME}
   {$define SUPPORT_GET_FRAME}
   {$define cpucg64shiftsupport}
   {$define cpucg64shiftsupport}
   {$define OMFOBJSUPPORT}
   {$define OMFOBJSUPPORT}
+  {$ifdef go32v2}
+    { go32v2 uses cwsdpmi extender which is incompatible with watcom extender
+      thus we use the internal smartlink sections by default in that case. }
+    {$define I8086_SMARTLINK_SECTIONS}
+    {$define i8086_link_intern_debuginfo}
+  {$endif go32v2}
 {$endif i8086}
 {$endif i8086}
 
 
 {$ifdef i386}
 {$ifdef i386}