diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-03-17 13:58:26 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-03-17 15:01:16 -0700 |
| commit | d7f80ca2c731cb0e1b00c7dc772b03753e16150a (patch) | |
| tree | 7c42253f9de3c6e39d97319319f49a35f140fd96 /src/bootstrap | |
| parent | be989acabd0d566aeb2a76b760ccafdd1187f202 (diff) | |
| download | rust-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.rs | 3 |
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" |
