File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2542,11 +2542,6 @@ pub fn stream_cargo(
2542
2542
}
2543
2543
cmd. arg ( "--message-format" ) . arg ( message_format) ;
2544
2544
2545
- if builder. config . compile_time_deps {
2546
- cmd. arg ( "-Zunstable-options" ) ;
2547
- cmd. arg ( "--compile-time-deps" ) ;
2548
- }
2549
-
2550
2545
for arg in tail_args {
2551
2546
cmd. arg ( arg) ;
2552
2547
}
Original file line number Diff line number Diff line change @@ -747,6 +747,12 @@ impl Builder<'_> {
747
747
// Make cargo emit diagnostics relative to the rustc src dir.
748
748
cargo. arg ( format ! ( "-Zroot-dir={}" , self . src. display( ) ) ) ;
749
749
750
+ if self . config . compile_time_deps {
751
+ // Build only build scripts and proc-macros for rust-analyzer when requested.
752
+ cargo. arg ( "-Zunstable-options" ) ;
753
+ cargo. arg ( "--compile-time-deps" ) ;
754
+ }
755
+
750
756
// FIXME: Temporary fix for https://github.com/rust-lang/cargo/issues/3005
751
757
// Force cargo to output binaries with disambiguating hashes in the name
752
758
let mut metadata = if compiler. stage == 0 {
You can’t perform that action at this time.
0 commit comments