From d7f80ca2c731cb0e1b00c7dc772b03753e16150a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 17 Mar 2016 13:58:26 -0700 Subject: [PATCH] rustbuild: Fix cross to netbsd from Linux Apparently the NetBSD compiler-rt builds into the linux directory as well. I'm... detecting a trend! --- src/bootstrap/build/native.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/build/native.rs b/src/bootstrap/build/native.rs index 52595d3638c27..b3bd6b9229965 100644 --- a/src/bootstrap/build/native.rs +++ b/src/bootstrap/build/native.rs @@ -114,7 +114,8 @@ pub fn compiler_rt(build: &Build, target: &str) { let arch = target.split('-').next().unwrap(); let mode = if build.config.rust_optimize {"Release"} else {"Debug"}; let (dir, build_target, libname) = if target.contains("linux") || - target.contains("freebsd") { + target.contains("freebsd") || + target.contains("netbsd") { let os = if target.contains("android") {"-android"} else {""}; let arch = if arch.starts_with("arm") && target.contains("eabihf") { "armhf"