ARM: Compile whole tree with clang.

Note: GCC is still the default compiler, to use clang do the following:

 $ BUILDVARS="" ./releasetools/arm_sdimage.sh
This commit is contained in:
2016-06-17 08:47:43 +02:00
parent ae34580f0c
commit fddf1f133e
13 changed files with 125 additions and 8 deletions

View File

@@ -115,6 +115,10 @@ USETOOLS?= never
# LSC FIXME: RELEASEMACHINEDIR is set to evbarm, instead of evbearm-el
.if !empty(MACHINE:Mevbarm*)
RELEASEMACHINEDIR:= evbearm-el
# LSC: Clang uses floating point instruction to vectorize some operation, even
# at -O0, make sure it uses soft-float as the minix uKernel doesn't yet
# save / restore the hardware fpu context on ARM.
CFLAGS+= -mno-implicit-float -fno-vectorize
.endif
.if ${HAVE_GCC:Dyes} == "yes" || \