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

* fixed setting up the global switch for main programs without a "program"
header on platforms not in systems_unit_program_exports

git-svn-id: trunk@26975 -

Jonas Maebe 11 жил өмнө
parent
commit
009c96a0bd
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      compiler/pmodules.pas

+ 3 - 2
compiler/pmodules.pas

@@ -2029,9 +2029,10 @@ type
 
               consume(_SEMICOLON);
             end
-         else if (target_info.system in systems_unit_program_exports) then
+         else
            begin
-             exportlib.preparelib(current_module.realmodulename^);
+             if (target_info.system in systems_unit_program_exports) then
+               exportlib.preparelib(current_module.realmodulename^);
 
              { setup things using the switches }
              setupglobalswitches;