This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180933 - forced recompile of project after changing linker options
Summary: forced recompile of project after changing linker options
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-18 14:48 UTC by elkvis
Modified: 2010-04-24 05:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description elkvis 2010-02-18 14:48:57 UTC
I am using Netbeans 6.8 on Opensuse Linux 10.3 with KDE, although it does it on my windows machine too. if I change a setting in the linker section of the project settings, it forces me to do a clean and full rebuild. it seems to me that there should be no reason that this must happen.  If I change a linker setting, and then select "build main project" from the run menu, it does a full rebuild, instead of simply running the linker step, even if I just finished a build, and errors occurred only during linking. the object files for the project still exist, and the linker settings should have no bearing on them. the project I'm working with is over 800 files, and takes 45 minutes to build in release mode, so needless to say, I would like to avoid a full rebuild if there was an error in linking and I change a setting to fix the error.
Comment 1 Thomas Preisler 2010-03-22 23:55:48 UTC
Alexey, any comments?
Comment 2 Alexey Vladykin 2010-03-23 09:28:13 UTC
We could add a new expert checkbox in project properties: "Force full rebuild on project properties change". It should be enabled by default, like "Make Dependency Checking", but user will be able to turn it off in case of troubles.
Depending on the state of this checkbox we will either add nbproject/Makefile-$(CONF).mk as dependency to every compile/link target, or not.
Comment 3 Thomas Preisler 2010-04-22 19:47:10 UTC
This is a side effect of fix for http://netbeans.org/bugzilla/show_bug.cgi?id=151465.
Comment 4 Thomas Preisler 2010-04-22 23:38:43 UTC
Fixed. Added a new option "Rebuild if properties have changed" to projects which will add the name of the makefile to the dependencies if selected. This is what 151465 automatically did, but I made it an user option. Default is false meaning projects will NOT be rebuilt just because you save the properties. Dependency checking will (should) take care of what needs to be rebuild. Only in some (rare) cases this dependency checking fails and you may want to enable this new option. One case is if you change compiler macros (-Dxxx). This will not trigger are rebuild with GNU compilers and in this case you may want to enable this new option. A clean first also solves this problem. I made the default value false because we have gotten several issue filed against always rebuild when properties have changed.
Comment 5 Quality Engineering 2010-04-24 05:30:43 UTC
Integrated into 'main-golden', will be available in build *201004240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5cc93299902e
User: Thomas Preisler <thp@netbeans.org>
Log: #180933 - forced recompile of project after changing linker options