How to prevent systematic cleans before builds? [message #1665717] |
Wed, 11 March 2015 11:05 |
Amenel Voglozin Messages: 23 Registered: September 2009 |
Junior Member |
|
|
Hi all,
I'm using CDT 8.6.0 and Luna 4.4.2 on a Windows 8 system to work on a program that has grown over 4 years to be made of dozens of C++ source files.
I have three build configurations for the project: Debug, Release, and CUTE tests. Each build configuration produces an executable that has the configuration as a suffix, i.e. Proj-Debug.exe, Proj-Release.exe, Proj-CUTE.exe.
Each of these executables is tied to a Debug configuration and to a Run configuration.
The problem that I have is that each time I switch to a different Build configuration, the build process starts from zero. Each time I launch either of the Run or Debug configurations, all files are recompiled and the corresponding executable is rebuilt again. Clearly, there's no incremental build happening. For instance, I can click two (or more) consecutive times to launch a Run configuration and the full build happens again. I can close all editors, restart Eclipse and just launch the Run configuration three times in a row without ever doing anything else on the computer, and all objects and artifacts will be rebuilt each single time.
Clearly too, there's a point when CDT launches a build that has "clean" as the target. CDT does so before actually launching the Run configuration and before actually switching to a different build configuration.
I'd like to make these unnecessary "Clean" builds disappear.
My settings are:
* Global preferences > C/C++ > Build > "Build configurations only when there are Eclipse resources changes" is ticked
* Global preferences > Run/Debug > Launching > General options > "Build (if required) before launching" is ticked
* * Project preferences > C/C++ Build > Builder settings is set to the external builder with the command "mingw32-make --file=makefile"
* Project preferences > C/C++ Build > Behavior > Workbench build behavior > "Build (incremental build)" is ticked and set to "all"
* Project preferences > C/C++ Build > Behavior > Workbench build behavior > "Clean" is ticked and set to "clean".
Does anyone see (or think of) anything wrong with that configuration or anything that I might have overlooked? Thanks.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05161 seconds