I have a dual project where a "#ifdef value" in the code is controlled by project options. After changing in the "select target" window, clicking 'build has no effect, rebuild is required. I get by this by discretely rebuilding the files where the #ifdef exist, but that is error prone. is there a way to make 'build' suffice?
After changing in the "select target" window, clicking 'build has no effect, rebuild is required.
That indicates you made way too few settings different between those two targets. They really must each have their own directory for output files, and possibly a different name for the resulting executable. I.e. plain re-building should not even be necessary create the other target, because all files from both targets exist in parallel.
thanx, will work on this
need a bit more help I changed "select folder for objects" and got a total rebuild - great, as it should be first time. However the .axf goes in the previous object directory - and the dbugger can't find it (looking in the new directory) - can't find where to fix that
I did advise to change the name of the executable, too, didn't I?
did not mention above, but have done
Then the executable should have landed in the target-specific folder. You can check on the "Output " tab: the name of the generated file is shown next to the "Create Executable" button. You may have to make sure you change the executable name after the new object directory has been set.
with a bit of 'fiddle' I got it