This commit addresses regression introduceded in r302177

(WITH_SYSTEM_COMPILER: Enable by default) and it's prerequisite: r300354,
caused i386 builds to fail when cross-built on an amd64 host.

Reviewed by:	bdrewery, delphij, gjb
Approved by:	re (gjb)
This commit is contained in:
Cy Schubert 2016-06-28 07:47:42 +00:00
parent 9eb3f14324
commit 3e04b0a043

View file

@ -1,5 +1,9 @@
# $FreeBSD$
# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
.include <host-target.mk>
# XXX ---
.include <bsd.own.mk>
NO_WERROR=
@ -34,7 +38,17 @@ PROGS+= h_memset
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
.if ${COMPILER_TYPE} == "clang" && ${MK_TOOLCHAIN} == "yes"
.if ${COMPILER_VERSION} < 30500 || 30700 <= ${COMPILER_VERSION}
# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
.if ${MACHINE_CPUARCH} == ${_HOST_ARCH}
# XXX ---
PROGS+= h_raw
# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
.endif
# XXX ---
.endif
.endif
.endif