Ver código fonte

* Collect resource files only when program or library is compiled.

git-svn-id: trunk@7841 -
yury 18 anos atrás
pai
commit
f0e554caef
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      compiler/pmodules.pas

+ 2 - 2
compiler/pmodules.pas

@@ -108,8 +108,6 @@ implementation
 
 
         { resource files }
         { resource files }
         CompileResourceFiles;
         CompileResourceFiles;
-        { create global resource file by collecting all resource files }
-        CollectResourceFiles;
       end;
       end;
 
 
 
 
@@ -1504,6 +1502,8 @@ implementation
              { create the executable when we are at level 1 }
              { create the executable when we are at level 1 }
              if (compile_level=1) then
              if (compile_level=1) then
                begin
                begin
+                 { create global resource file by collecting all resource files }
+                 CollectResourceFiles;
                  { write .def file }
                  { write .def file }
                  if (cs_link_deffile in current_settings.globalswitches) then
                  if (cs_link_deffile in current_settings.globalswitches) then
                   deffile.writefile;
                   deffile.writefile;