summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-05-21 01:32:16 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-05-21 01:32:16 +0000
commit51fc7c2863b3b18836c19a887cd29071dd85c3d4 (patch)
tree65275668a7c98b4db1c333a5737b04d4b973a14e /Makefile.inc1
parent50046941ad43fef301fb34e641368f397a823dd1 (diff)
downloadFreeBSD-src-51fc7c2863b3b18836c19a887cd29071dd85c3d4.zip
FreeBSD-src-51fc7c2863b3b18836c19a887cd29071dd85c3d4.tar.gz
Enable external compiler logic if both bootstrap compilers are disabled.
Reviewed by: brooks Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D6358
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc13
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index e44182f..746cea5 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -460,7 +460,8 @@ BFLAGS+= -B${CROSS_BINUTILS_PREFIX}
.endif
# External compiler needs sysroot and target flags.
-.if ${MK_CROSS_COMPILER} == "no"
+.if ${MK_CROSS_COMPILER} == "no" || \
+ (${MK_CLANG_BOOTSTRAP} == "no" && ${MK_GCC_BOOTSTRAP} == "no")
.if !defined(CROSS_BINUTILS_PREFIX) || !exists(${CROSS_BINUTILS_PREFIX})
BFLAGS+= -B${WORLDTMP}/usr/bin
.endif
OpenPOWER on IntegriCloud