Skip to content

Commit a57422a

Browse files
committed
move builder run methods to new execution context
1 parent 617f00f commit a57422a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ impl Builder<'_> {
683683
.arg("--print=file-names")
684684
.arg("--crate-type=proc-macro")
685685
.arg("-")
686-
.run_capture(self)
686+
.run_capture(self.context())
687687
.stderr();
688688

689689
let not_supported = error
@@ -990,8 +990,10 @@ impl Builder<'_> {
990990
// rustc args as a workaround.
991991
if mode == Mode::ToolRustc || mode == Mode::Codegen {
992992
if let Some(llvm_config) = self.llvm_config(target) {
993-
let llvm_libdir =
994-
command(llvm_config).arg("--libdir").run_capture_stdout(self).stdout();
993+
let llvm_libdir = command(llvm_config)
994+
.arg("--libdir")
995+
.run_capture_stdout(self.context())
996+
.stdout();
995997
if target.is_msvc() {
996998
rustflags.arg(&format!("-Clink-arg=-LIBPATH:{llvm_libdir}"));
997999
} else {

0 commit comments

Comments
 (0)