incremental build issues

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

incremental build issues

Postby Tabulous » Fri Feb 16, 2018 3:38 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: incremental build issues

Postby Giovanni » Fri Feb 16, 2018 3:47 pm

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: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: incremental build issues

Postby Tabulous » Fri Feb 16, 2018 4:05 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: incremental build issues

Postby Giovanni » Fri Feb 16, 2018 6:10 pm

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


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 12 guests