Browse Source
Set explicit host when checking supported flags.
wintest
Josh Matthews
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/lib.rs
|
@ -413,10 +413,12 @@ impl Build { |
|
|
let src = self.ensure_check_file()?; |
|
|
let src = self.ensure_check_file()?; |
|
|
let obj = out_dir.join("flag_check"); |
|
|
let obj = out_dir.join("flag_check"); |
|
|
let target = self.get_target()?; |
|
|
let target = self.get_target()?; |
|
|
|
|
|
let host = self.get_host()?; |
|
|
let mut cfg = Build::new(); |
|
|
let mut cfg = Build::new(); |
|
|
cfg.flag(flag) |
|
|
cfg.flag(flag) |
|
|
.target(&target) |
|
|
.target(&target) |
|
|
.opt_level(0) |
|
|
.opt_level(0) |
|
|
|
|
|
.host(&host) |
|
|
.debug(false) |
|
|
.debug(false) |
|
|
.cpp(self.cpp) |
|
|
.cpp(self.cpp) |
|
|
.cuda(self.cuda); |
|
|
.cuda(self.cuda); |
|
|