From 52b7824bde3152246210827e7cc0d36d6a625f52 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 28 Jun 2018 19:01:53 +0000 Subject: [PATCH] SYSTEM_COMPILER/LINKER: Fix cross-build support after r335706. X-MFC-With: r335706 MFC after: 2 weeks Sponsored by: Dell EMC --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 2d03ce29cf6f..4fbb82d111ee 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -132,7 +132,7 @@ TARGET_TRIPLE?= ${TARGET_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${TARGE # If all targets are disabled for system llvm then don't expect it to work # for cross-builds. -.if ${MK_LLVM_TARGET_ALL} == "no" && \ +.if !defined(TOOLS_PREFIX) && ${MK_LLVM_TARGET_ALL} == "no" && \ ${MACHINE} != ${TARGET} && ${MACHINE_ARCH} != ${TARGET_ARCH} && \ !make(showconfig) MK_SYSTEM_COMPILER= no