Unbreak Clang on PowerPC.
It seems GCC 4.2.1 on PowerPC miscompiles Clang, causing it to crash when building even simple Hello World applications. Switch back to -O1 for this architecture. Submitted by: nwhitehorn
This commit is contained in:
parent
0c1bca0fd2
commit
486d3623ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209153
@ -8,11 +8,16 @@ CFLAGS+=-I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
|
||||
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD \
|
||||
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG
|
||||
|
||||
# Correct for gcc miscompilation when compiling on PPC with -O2
|
||||
.if ${MACHINE_ARCH} == "powerpc"
|
||||
CFLAGS+= -O1
|
||||
.endif
|
||||
|
||||
TARGET_ARCH?= ${MACHINE_ARCH}
|
||||
# XXX: 8.0, to keep __FreeBSD_cc_version happy
|
||||
CFLAGS+=-DLLVM_HOSTTRIPLE=\"${TARGET_ARCH}-undermydesk-freebsd9.0\" \
|
||||
-DCLANG_VENDOR=\"FreeBSD\ \" -DSVN_REVISION=\"104832\" \
|
||||
-DCLANG_VENDOR_SUFFIX=\"\ 20100613\"
|
||||
-DCLANG_VENDOR_SUFFIX=\"\ 20100614\"
|
||||
|
||||
.PATH: ${LLVM_SRCS}/${SRCDIR}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user