BUILD: fix that building multi-package project takes time even without changes
authorChangHyun Lee <leechwin.lee@samsung.com>
Tue, 20 Sep 2016 05:26:40 +0000 (14:26 +0900)
committerSangho Park <sangho.p@samsung.com>
Tue, 20 Sep 2016 07:51:55 +0000 (16:51 +0900)
commit372669843ff188a4b47e52dfef1fa2ad0a6f69e2
tree3c324732d0304959e954f6fba3356f8c6757723a
parentd92f6663ad0a3bd67cdd688f641eeeae2a63cc0d
BUILD: fix that building multi-package project takes time even without changes

JIRA: SDKRM-955

When using the external builder to rebuild a top level project with a minor change,
the CDT re-builds everything in the dependency chain by invoking make on all
dependent projects.

This is meaningless time consuming because often the make -all does nothing.
This patch updates the preference option to the more efficient build behaviour:
building a project configuration only when it contains changes within Eclipse or
if any of its references have changes within Eclipse.

Change-Id: Ie2d0d09c60c711a0a5369e271a7f1844cb7c9541
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePreferenceInitializer.java
core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/build/BuildPreferencePage.java