about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-03-17 13:58:26 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-03-17 15:01:16 -0700
commitd7f80ca2c731cb0e1b00c7dc772b03753e16150a (patch)
tree7c42253f9de3c6e39d97319319f49a35f140fd96 /src/bootstrap
parentbe989acabd0d566aeb2a76b760ccafdd1187f202 (diff)
downloadrust-d7f80ca2c731cb0e1b00c7dc772b03753e16150a.tar.gz
rust-d7f80ca2c731cb0e1b00c7dc772b03753e16150a.zip
rustbuild: Fix cross to netbsd from Linux
Apparently the NetBSD compiler-rt builds into the linux directory as well.
I'm... detecting a trend!
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/build/native.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/build/native.rs b/src/bootstrap/build/native.rs
index 52595d3638c..b3bd6b92299 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"