Avoid dynamic linking to libstd in command-current-dir test · rust-lang/rust@f59c8ff (original) (raw)

File tree

2 files changed

lines changed

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1928,8 +1928,8 @@ impl Step for Assemble {
1928 1928 let is_dylib_or_debug = is_dylib(&filename) |
1929 1929
1930 1930 // If we link statically to stdlib, do not copy the libstd dynamic library file
1931 -// Currently, we do not avoid the copy on Windows, as it seems to be causing issues in
1932 -// post-optimization stage0 tests.
1931 +// FIXME: Also do this for Windows once incremental post-optimization stage0 tests
1932 +// work without std.dll (see https://github.com/rust-lang/rust/pull/131188).
1933 1933 let can_be_rustc_dynamic_dep = if builder
1934 1934 .link_std_into_rustc_driver(target_compiler.host)
1935 1935 && !target_compiler.host.is_windows()
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
1 1 //@ run-pass
2 +//@ no-prefer-dynamic We move the binary around, so do not depend dynamically on libstd
2 3 //@ ignore-wasm32 no processes
3 4 //@ ignore-sgx no processes
4 5 //@ ignore-fuchsia Needs directory creation privilege