LiteEditor fails to build (link)

Discussion about CodeLite development process and patches
leon_lee
CodeLite Enthusiast
Posts: 32
Joined: Sun Nov 18, 2012 10:44 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LiteEditor fails to build (link)

Post by leon_lee »

diff --git a/Plugin/builder_gnumake.cpp b/Plugin/builder_gnumake.cpp
index 8bdae27..7329ec0 100644
--- a/Plugin/builder_gnumake.cpp
+++ b/Plugin/builder_gnumake.cpp
@@ -641,14 +641,11 @@ void BuilderGnuMake::CreateObjectList(ProjectPtr proj, const wxString &confToB

wxString objectsList;
size_t objCounter = 0;
+ // to exclude the amount of invalid files
+ size_t ValidObjFileCount = 0;^M
text << "Objects" << objCounter++ << "=";
for (size_t i=0; i<files.size(); ++i) {

- if ( i && ((i % 100) == 0) ) {
- text << "\n\n";
- text << "Objects" << objCounter++ << "=";
- }
-
// is this a valid file?
if ( !cmp->GetCmpFileType(files.GetExt(), ft) )
continue;
@@ -656,6 +653,12 @@ void BuilderGnuMake::CreateObjectList(ProjectPtr proj, const wxString &confToBu
if ( ft.kind == Compiler::CmpFileKindResource && !OS_WINDOWS) {
continue;
}
+
+ ValidObjFileCount++;
+ if ( ValidObjFileCount && ((ValidObjFileCount % 100) == 0) ) {
+ text << "\n\n";^M
+ text << "Objects" << objCounter++ << "=";
+ }^M

wxString objPrefix = DoGetTargetPrefix(files.at(i), cwd, cmp);
if (ft.kind == Compiler::CmpFileKindResource) {
User avatar
Jarod42
CodeLite Expert
Posts: 239
Joined: Wed Sep 30, 2009 5:54 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

Re: LiteEditor fails to build (link)

Post by Jarod42 »

autoversion.cpp is a generated file by git-revision.{bat,sh} which is a prebuilt in Release (it seems it is missing in Debug Config :-/ )
Post Reply