Skip to content

Commit 5488007

Browse files
committed
pass the tool's cflags when building TestHelpers
1 parent efbbd0c commit 5488007

File tree

1 file changed

+3
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,6 +2960,9 @@ impl Step for TestHelpers {
29602960
cfg.archiver(ar);
29612961
}
29622962
cfg.compiler(builder.cc(target));
2963+
for flag in builder.cflags(target, GitRepo::Rustc, CLang::C) {
2964+
cfg.flag(&flag);
2965+
}
29632966
}
29642967
cfg.cargo_metadata(false)
29652968
.out_dir(&dst)

0 commit comments

Comments
 (0)