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 ?
incremental build issues
- 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
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
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
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
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
- 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
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
Giovanni