Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50
import, it works without issue.
This commit is contained in:
parent
97982fcc82
commit
ebcc5e9a0d
@ -9,7 +9,7 @@ CFLAGS+=-I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
|
||||
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG
|
||||
|
||||
# Correct for gcc miscompilation when compiling on PPC with -O2
|
||||
.if ${MACHINE_ARCH} == "powerpc"
|
||||
.if ${MACHINE_CPUARCH} == "powerpc"
|
||||
CFLAGS+= -O1
|
||||
.endif
|
||||
|
||||
|
@ -428,15 +428,14 @@ __T=${TARGET_ARCH}
|
||||
.else
|
||||
__T=${MACHINE_ARCH}
|
||||
.endif
|
||||
# Clang is only for x86 and 32-bit powerpc right now, by default.
|
||||
.if ${__T} == "amd64" || ${__T} == "i386" || ${__T} == "powerpc"
|
||||
# Clang is only for x86 and powerpc right now, by default.
|
||||
.if ${__T} == "amd64" || ${__T} == "i386" || ${__T:Mpowerpc*}
|
||||
__DEFAULT_YES_OPTIONS+=CLANG
|
||||
.else
|
||||
__DEFAULT_NO_OPTIONS+=CLANG
|
||||
.endif
|
||||
# FDT is needed only for arm, mips and powerpc (and not powerpc64)
|
||||
.if ${__T} == "arm" || ${__T} == "armeb" || ${__T} == "powerpc" || \
|
||||
${__T:Mmips*}
|
||||
# FDT is needed only for arm, mips and powerpc
|
||||
.if ${__T:Marm*} || ${__T:Mpowerpc*} || ${__T:Mmips*}
|
||||
__DEFAULT_YES_OPTIONS+=FDT
|
||||
.else
|
||||
__DEFAULT_NO_OPTIONS+=FDT
|
||||
|
Loading…
Reference in New Issue
Block a user