From f0e554caefeb5cb855e45ea3f83f2753d671ad66 Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 28 Jun 2007 11:16:51 +0000 Subject: [PATCH] * Collect resource files only when program or library is compiled. git-svn-id: trunk@7841 - --- compiler/pmodules.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/pmodules.pas b/compiler/pmodules.pas index 58bdffc620..1e5bb4ace6 100644 --- a/compiler/pmodules.pas +++ b/compiler/pmodules.pas @@ -108,8 +108,6 @@ implementation { resource files } CompileResourceFiles; - { create global resource file by collecting all resource files } - CollectResourceFiles; end; @@ -1504,6 +1502,8 @@ implementation { create the executable when we are at level 1 } if (compile_level=1) then begin + { create global resource file by collecting all resource files } + CollectResourceFiles; { write .def file } if (cs_link_deffile in current_settings.globalswitches) then deffile.writefile;