Skip to content

Commit d265c3b

Browse files
authored
Merge pull request #324 from jdm/patch-1
Don't override host when checking supported flags.
2 parents 8209fdc + ca70fd3 commit d265c3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,11 +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)
420-
.host(&target)
421+
.host(&host)
421422
.debug(false)
422423
.cpp(self.cpp)
423424
.cuda(self.cuda);

0 commit comments

Comments
 (0)