Page 1 of 1

incremental build issues

Posted: Fri Feb 16, 2018 3:38 pm
by Tabulous
hi
i have few #defines in an header file, these control certain bits of code etc.....

What im finding is, if i change them some times the code files are not all re-compiled, this can lead to weird things happening.

Why would this happen ?, is this eclipse indexer of something else ?

Re: incremental build issues

Posted: Fri Feb 16, 2018 3:47 pm
by Giovanni
Hi,

Eclipse has no say in what is compiled or not, it is makefiles. You should look into that, are you using the provided ones?

Giovanni

Re: incremental build issues

Posted: Fri Feb 16, 2018 4:05 pm
by Tabulous
Yes, although i have change them very slightly

i.e things like this

$(info BUILD_TYPE is $(BUILD_TYPE))
ifeq ($(BUILD_TYPE),DEBUG)
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
else
USE_OPT = -Os -ggdb -fomit-frame-pointer -falign-functions=16
endif
endif

and these

ifeq ($(BUILD_TYPE),DEBUG)
LDSCRIPT= $(STARTUPLD)/STM32F411xC_512KB.ld
else
LDSCRIPT= $(STARTUPLD)/STM32F411xC_256KB.ld
endif

ifeq ($(BUILD_TYPE),DEBUG)
UDEFS = -DCORTEX_VTOR_INIT=0x0000 -D'BUILD_DEBUG'
else
UDEFS = -DCORTEX_VTOR_INIT=0xC000 -D'BUILD_RELEASE'
endif

Re: incremental build issues

Posted: Fri Feb 16, 2018 6:10 pm
by Giovanni
Dependencies are generated by GCC itself into that .dep directory, you should check if those headers are recognized as dependencies. I never experienced this before.

Giovanni