PERFORCE change 222391 for review

Brooks Davis brooks at FreeBSD.org
Tue Feb 26 15:47:21 UTC 2013


http://p4web.freebsd.org/@@222391?ac=10

Change 222391 by brooks at brooks_zenith on 2013/02/26 15:46:27

	When building for a target other than the build host and using
	an external compiler that is clang, set the target triple.

Affected files ...

.. //depot/projects/ctsrd/tesla/src/Makefile.inc1#5 edit

Differences ...

==== //depot/projects/ctsrd/tesla/src/Makefile.inc1#5 (text+ko) ====

@@ -294,6 +294,16 @@
 .endif
 .if ${XCC:M/*}
 XFLAGS=		--sysroot=${WORLDTMP}
+.if ${TARGET_ARCH} != ${MACHINE_ARCH} && ${WMAKE_COMPILER_TYPE} == "clang"
+.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
+XFLAGS+=	-target ${TARGET_TRIPLE}
+.endif
 .endif
 WMAKEENV+=	CC="${XCC} ${XFLAGS}" CXX="${XCXX} ${XFLAGS}" \
 		CPP="${XCPP} ${XFLAGS}" \


More information about the p4-projects mailing list