From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Grokav Gastroryan
Sent: Tuesday, June 26, 2007 2:46
PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] [PATCH] Custom
Build Root & Clean Bug
Hello,
CDT developers are busy with Europa, so no response to my query is
understandable. However, I took a look and made some changes, not too many due
to pretty good design, it was localized. Now I can use this to deposit *.o and
resulting artifacts into a custom out-of-project directory (through a linked
folder and variables to specify root for common projects), which is nice.
I think this feature should be included in CDT, it makes sense for many
reasons.
Please consider it, and the patch should give an idea of how much work it took.
However, although the patch is against CDT-4.0.0RC4, I uncovered what look like
a bug in the pristine branch.
After a new project is created, CDT creates the Debug/Release directory and
builds it ok. However, if either of these directories is removed without CDT
knowing about it ( e.g., clean not controlled by eclipse) and a rebuild is
attempted, CDT chokes with this:
---
g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\Test4.o ..\src\Test4.cpp
Internal Builder: Exec error:The directory name is invalid.
Build error occurred, build is stopped
Time consumed: 16 ms.
---
Doing a clean build, replaces the removed directory and builds fine. Perhaps
CDT should detect that directory is gone, much like it detects if a file is
modified, and issue a clean build.
Thank you.