From c682ac9528822215e57c1ab70b2dd306b6fbbbeb Mon Sep 17 00:00:00 2001 From: Marc-Antoine Perennou Date: Thu, 13 Jun 2019 17:41:03 +0200 Subject: [PATCH] rustbuild: set cxx for hosts even if not configured Signed-off-by: Marc-Antoine Perennou --- src/bootstrap/cc_detect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/cc_detect.rs b/src/bootstrap/cc_detect.rs index e0fef972f74c..71d08ae38efa 100644 --- a/src/bootstrap/cc_detect.rs +++ b/src/bootstrap/cc_detect.rs @@ -110,7 +110,7 @@ pub fn find(build: &mut Build) { set_compiler(&mut cfg, Language::CPlusPlus, target, config, build) }; - if cxx_configured { + if cxx_configured || build.hosts.contains(&target) { let compiler = cfg.get_compiler(); build.cxx.insert(target, compiler); }