[LLVMdev] Setting TARGET_LLCFLAGS in the environment
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Jan 11 15:50:26 PST 2010
Weird issue beyond my make-fu:
When running the test-suite, this works fine:
make TARGET_LLCFLAGS='-mcpu=cortex-a8 -mattr=+thumb2' TEST=nightly report
But this fails:
export TARGET_LLCFLAGS='-mcpu=cortex-a8 -mattr=+thumb2'
make TEST=nightly report
It looks like the following line from Makefile.rules is executed multiple times:
TARGET_LLCFLAGS += -relocation-model=pic -disable-fp-elim
This causes llc to complain about the -relocation-model and -disable-fp-elim options being given multiple times. (Sometime they are repeated three or four times).
Clearly there is some make magic I don't understand here. Does anyone know what is going on?
More information about the llvm-dev