Skip to content

Commit ca70fd3

Browse files
authored
Set explicit host when checking supported flags.
1 parent 4f94de6 commit ca70fd3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,12 @@ impl Build {
413413
let src = self.ensure_check_file()?;
414414
let obj = out_dir.join("flag_check");
415415
let target = self.get_target()?;
416+
let host = self.get_host()?;
416417
let mut cfg = Build::new();
417418
cfg.flag(flag)
418419
.target(&target)
419420
.opt_level(0)
421+
.host(&host)
420422
.debug(false)
421423
.cpp(self.cpp)
422424
.cuda(self.cuda);

0 commit comments

Comments
 (0)