From ca70fd32c10f8cea805700e944f3a8d1f97d96d4 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 22 Jun 2018 16:15:58 -0400 Subject: [PATCH] Set explicit host when checking supported flags. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 0fc23e1..2e17c50 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -413,10 +413,12 @@ impl Build { let src = self.ensure_check_file()?; let obj = out_dir.join("flag_check"); let target = self.get_target()?; + let host = self.get_host()?; let mut cfg = Build::new(); cfg.flag(flag) .target(&target) .opt_level(0) + .host(&host) .debug(false) .cpp(self.cpp) .cuda(self.cuda);