build plug-in table only when needed. this also fixes warnings when using something like makensis.exe /X"OutFile bla.exe" /XSection /XSectionEnd
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3236 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
774f3d50de
commit
7bfcfac3c2
4 changed files with 16 additions and 11 deletions
|
@ -261,7 +261,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
if (build.display_script)
|
||||
{
|
||||
fprintf(g_output,"\n\nProcessing config: \n");
|
||||
fprintf(g_output,"Processing config: \n");
|
||||
fflush(g_output);
|
||||
}
|
||||
int ret=build.process_script(cfg,exepath);
|
||||
|
@ -275,6 +275,8 @@ int main(int argc, char **argv)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
fprintf(g_output,"\n");
|
||||
fflush(g_output);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -328,22 +330,16 @@ int main(int argc, char **argv)
|
|||
}
|
||||
return 1;
|
||||
}
|
||||
fprintf(g_output,"\n");
|
||||
fflush(g_output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
|
||||
// Added by Ximon Eighteen 5th August 2002
|
||||
if (!plugins_processed) {
|
||||
build.build_plugin_table();
|
||||
plugins_processed=1;
|
||||
}
|
||||
#endif //NSIS_CONFIG_PLUGIN_SUPPORT
|
||||
|
||||
if (build.display_script)
|
||||
{
|
||||
build.notify(MAKENSIS_NOTIFY_SCRIPT,sfile);
|
||||
fprintf(g_output,"\n\nProcessing script file: \"%s\"\n",sfile);
|
||||
fprintf(g_output,"Processing script file: \"%s\"\n",sfile);
|
||||
fflush(g_output);
|
||||
}
|
||||
int ret=build.process_script(fp,sfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue