Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

rev.1894, Modification and compile trouble

<< < (2/2)

kisoft:

--- Quote from: killerbot on January 30, 2006, 02:44:07 pm ---
--- Quote ---Resume: on an external makefile, a modified file(s) don't saved before the makefile is called
--- End quote ---
Could you file a bugreport for this on SF ?

--- End quote ---

Yes, I would send this bugreport on SF tomorrow.
May be somebody look this trouble too and confirm it.

PS I delete the default.conf file and reconfigure C::B again. No changes.

kisoft:

--- Quote from: kisoft on January 30, 2006, 03:07:40 pm ---
--- Quote ---Resume: on an external makefile, a modified file(s) don't saved before the makefile is called
--- End quote ---

--- End quote ---

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.


--- Code: ---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
     {

--- End code ---

kisoft:
I sumbit patch to SF:
https://sourceforge.net/tracker/index.php?func=detail&aid=1419940&group_id=126998&atid=707418

It work on my:
Version 1.0 revision 1907 (gcc 3.4.2 Windows/unicode, build: Jan 31 2006 09:27:10)

Navigation

[0] Message Index

[*] Previous page

Go to full version