From ee64bab76cdaa375cc015a5eb3e3fd7581d2a7b3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 11 May 2015 14:08:46 -0700 Subject: [PATCH] mk: Don't add cross prefixes for MSVC Currently the MSVC compilers don't have any cross prefixes and we're only able to make an MSVC compiler with a cross compile, so just avoid this logic on msvc for now. --- mk/platform.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/platform.mk b/mk/platform.mk index 53fb8138916..26a6db1c5bd 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -164,6 +164,7 @@ FIND_COMPILER = $(word 1,$(1:ccache=)) define CFG_MAKE_TOOLCHAIN # Prepend the tools with their prefix if cross compiling ifneq ($(CFG_BUILD),$(1)) + ifneq ($$(findstring msvc,$(1)),msvc) CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1)) CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1)) CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1)) @@ -173,6 +174,7 @@ define CFG_MAKE_TOOLCHAIN -C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1)) RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1)) + endif endif CFG_COMPILE_C_$(1) = $$(CC_$(1)) \