Allow us to build clang for ARM EABI. Clang and llvm use the

arm-gnueabi-freebsd10.0 triple for EABI. Use this when we are on arm or
armv6 and are building for EABI.

Reviewed by:	dim
This commit is contained in:
Andrew Turner 2013-02-12 05:56:00 +00:00
parent 04f5c32651
commit 8a166cafe0
21 changed files with 54 additions and 6 deletions

View File

@ -19,7 +19,15 @@ CFLAGS+= -fno-strict-aliasing
TARGET_ARCH?= ${MACHINE_ARCH}
BUILD_ARCH?= ${MACHINE_ARCH}
TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0
.if (${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "armv6") && \
${MK_ARM_EABI} != "no"
TARGET_ABI= gnueabi
.else
TARGET_ABI= unknown
.endif
TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd10.0
BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \
-DLLVM_HOSTTRIPLE=\"${BUILD_TRIPLE}\" \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=bugpoint
SRCDIR= tools/bugpoint

View File

@ -1,7 +1,9 @@
# $FreeBSD$
PROG_CXX=clang-tblgen
NO_MAN=
.include <bsd.own.mk>
PROG_CXX=clang-tblgen
SRCDIR= tools/clang/utils/TableGen
SRCS= ClangASTNodesEmitter.cpp \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llc
SRCDIR= tools/llc

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=lli
SRCDIR= tools/lli

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-ar
SRCDIR= tools/llvm-ar

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-as
SRCDIR= tools/llvm-as

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-bcanalyzer
SRCDIR= tools/llvm-bcanalyzer

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-diff
SRCDIR= tools/llvm-diff

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-dis
SRCDIR= tools/llvm-dis

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-extract
SRCDIR= tools/llvm-extract

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-link
SRCDIR= tools/llvm-link

View File

@ -1,7 +1,9 @@
# $FreeBSD$
PROG_CXX=llvm-mc
NO_MAN=
.include <bsd.own.mk>
PROG_CXX=llvm-mc
SRCDIR= tools/llvm-mc
SRCS= llvm-mc.cpp \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-nm
SRCDIR= tools/llvm-nm

View File

@ -1,7 +1,9 @@
# $FreeBSD$
PROG_CXX=llvm-objdump
NO_MAN=
.include <bsd.own.mk>
PROG_CXX=llvm-objdump
SRCDIR= tools/llvm-objdump
SRCS= llvm-objdump.cpp \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-prof
SRCDIR= tools/llvm-prof

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=llvm-ranlib
SRCDIR= tools/llvm-ranlib

View File

@ -1,7 +1,9 @@
# $FreeBSD$
PROG_CXX=llvm-rtdyld
NO_MAN=
.include <bsd.own.mk>
PROG_CXX=llvm-rtdyld
SRCDIR= tools/llvm-rtdyld
SRCS= llvm-rtdyld.cpp

View File

@ -1,7 +1,9 @@
# $FreeBSD$
PROG_CXX=macho-dump
NO_MAN=
.include <bsd.own.mk>
PROG_CXX=macho-dump
SRCDIR= tools/macho-dump
SRCS= macho-dump.cpp

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=opt
SRCDIR= tools/opt

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk>
PROG_CXX=tblgen
SRCDIR= utils/TableGen