Forráskód Böngészése

* correction from rev. 1.88 put back

Tomas Hajny 23 éve
szülő
commit
23591531b8
1 módosított fájl, 9 hozzáadás és 2 törlés
  1. 9 2
      compiler/pmodules.pas

+ 9 - 2
compiler/pmodules.pas

@@ -1100,7 +1100,8 @@ implementation
          if is_assembler_generated then
            insertobjectfile
          else
-           current_module.flags:=current_module.flags or uf_no_link;
+           if not (current_module.uses_imports) then
+             current_module.flags:=current_module.flags or uf_no_link;
 
          if cs_local_browser in aktmoduleswitches then
            current_module.localsymtable:=refsymtable;
@@ -1437,7 +1438,10 @@ implementation
 end.
 {
   $Log$
-  Revision 1.92  2003-01-08 18:43:56  daniel
+  Revision 1.93  2003-01-11 11:19:54  hajny
+    * correction from rev. 1.88 put back
+
+  Revision 1.92  2003/01/08 18:43:56  daniel
    * Tregister changed into a record
 
   Revision 1.91  2003/01/05 13:36:53  florian
@@ -1452,6 +1456,9 @@ end.
       afterwards. This is needed to support uses xxx in yyy correctly
     * unit dependency check fixed
 
+  Revision 1.88  2002/12/27 19:09:33  hajny
+    * another (hopefully final ;-) ) fix for not linked import libraries for units with no code
+
   Revision 1.87  2002/12/24 23:32:56  peter
     * Use FixFilename for specified unit sourcefile in uses