Resume: on an external makefile, a modified file(s) don't saved before the makefile is called
I found one solve, but it unlike me. C::B now normally save all modified files before start custom Makefile.
Method CompilerGCC::Build, on the custom Makefile branch, method saveAllFiles is not called.
Index: C:/Devel/codeblocks/src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- C:/Devel/codeblocks/src/plugins/compilergcc/compilergcc.cpp (revision 1902)
+++ C:/Devel/codeblocks/src/plugins/compilergcc/compilergcc.cpp (working copy)
@@ -1936,6 +1936,9 @@
{
wxString cmd = GetMakeCommandFor(mcBuild, bt);
m_CommandQueue.Add(new CompilerCommand(cmd, wxEmptyString, m_Project, bt));
+ // make sure all project files are saved
+ if (m_Project && !m_Project->SaveAllFiles())
+ Manager::Get()->GetMessageManager()->Log(_("Could not save all files..."));
}
else
{