]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_llvm/build.rs
ci/netbsd: use the "official" cross compiler
[rust.git] / src / librustc_llvm / build.rs
index b74bccb70593f7517e5d5a5838a78b11300359f1..7f53e21675c781798dc56453abdb57cd33a3f54e 100644 (file)
@@ -131,6 +131,12 @@ fn main() {
         if is_crossed && flag.starts_with("-m") {
             continue;
         }
+
+        // -Wdate-time is not supported by the netbsd cross compiler
+        if is_crossed && target.contains("netbsd") && flag.contains("date-time") {
+            continue;
+        }
+
         cfg.flag(flag);
     }