Skip to content

Commit 27ff241

Browse files
Add new MSVC_LIB_PATH runtest environment variable to know location of the msvc_lib binary
1 parent ae7b1c1 commit 27ff241

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3382,6 +3382,7 @@ impl<'test> TestCx<'test> {
33823382
cmd.env("IS_MSVC", "1")
33833383
.env("IS_WINDOWS", "1")
33843384
.env("MSVC_LIB", format!("'{}' -nologo", lib.display()))
3385+
.env("MSVC_LIB_PATH", format!("{}", lib.display()))
33853386
.env("CC", format!("'{}' {}", self.config.cc, cflags))
33863387
.env("CXX", format!("'{}' {}", &self.config.cxx, cxxflags));
33873388
} else {
@@ -3752,6 +3753,7 @@ impl<'test> TestCx<'test> {
37523753
cmd.env("IS_MSVC", "1")
37533754
.env("IS_WINDOWS", "1")
37543755
.env("MSVC_LIB", format!("'{}' -nologo", lib.display()))
3756+
.env("MSVC_LIB_PATH", format!("{}", lib.display()))
37553757
// Note: we diverge from legacy run_make and don't lump `CC` the compiler and
37563758
// default flags together.
37573759
.env("CC_DEFAULT_FLAGS", &cflags)

0 commit comments

Comments
 (0)