incremental build issues

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

incremental build issues

Post 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 ?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: incremental build issues

Post 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
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: incremental build issues

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: incremental build issues

Post 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
Post Reply