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.
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.
Alexey, any comments?
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.
This is a side effect of fix for http://netbeans.org/bugzilla/show_bug.cgi?id=151465.
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.
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