diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-07-22 07:57:53 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-07-22 07:57:53 -0700 |
| commit | c3d3d6fe0295c2521801fc4d0c6afe73e4d1328c (patch) | |
| tree | 797a06f09988c0aab6d733a366c015b870aff0f9 /src | |
| parent | aee3dc4c6cc0e018b648a340fb98af10887ce4ba (diff) | |
| download | rust-c3d3d6fe0295c2521801fc4d0c6afe73e4d1328c.tar.gz rust-c3d3d6fe0295c2521801fc4d0c6afe73e4d1328c.zip | |
Fix inclusion of `wasm-component-ld` in dist artifacts
This is another accidental omission from #126967 (in addition to #127867) which fixes an issue where `wasm-component-ld` isn't distributed via rustup just yet because while it's present in the sysroot it's not present in the tarballs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 1e9d2025bc7..9f0579e7f1c 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -472,6 +472,11 @@ impl Step for Rustc { ); } } + if builder.build_wasm_component_ld() { + let src_dir = builder.sysroot_libdir(compiler, host).parent().unwrap().join("bin"); + let ld = exe("wasm-component-ld", compiler.host); + builder.copy_link(&src_dir.join(&ld), &dst_dir.join(&ld)); + } // Man pages t!(fs::create_dir_all(image.join("share/man/man1"))); |
