about summary refs log tree commit diff
path: root/src/bootstrap/build/native.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/build/native.rs')
-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"