diff options
| author | bors <bors@rust-lang.org> | 2025-05-29 12:07:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-29 12:07:53 +0000 |
| commit | 13718eb788622ef8c998650451174570230d2971 (patch) | |
| tree | caa9ae4aa30d982c3f7fb0b48d14a8d15a3ce135 /src | |
| parent | 8afd71079a729ac002298239f5010ccaac5807ca (diff) | |
| parent | 026baa1c6fb397e9bd2c171d750c939232c13a58 (diff) | |
| download | rust-13718eb788622ef8c998650451174570230d2971.tar.gz rust-13718eb788622ef8c998650451174570230d2971.zip | |
Auto merge of #141595 - bjorn3:rustc_no_sysroot_proc_macro, r=onur-ozkan
Do not get proc_macro from the sysroot in rustc With the stage0 refactor the proc_macro version found in the sysroot will no longer always match the proc_macro version that proc-macros get compiled with by the rustc executable that uses this proc_macro. This will cause problems as soon as the ABI of the bridge gets changed to implement new features or change the way existing features work. To fix this, this commit changes rustc crates to depend directly on the local version of proc_macro which will also be used in the sysroot that rustc will build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 7b5393a115a..50dc8e5ac9b 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -776,7 +776,8 @@ impl Step for RustcDev { copy_src_dirs( builder, &builder.src, - &["compiler"], + // The compiler has a path dependency on proc_macro, so make sure to include it. + &["compiler", "library/proc_macro"], &[], &tarball.image_dir().join("lib/rustlib/rustc-src/rust"), ); |
