File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
compiler/rustc_incremental/src/persist Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,19 @@ fn lock_directory(
521
521
or disable incremental compilation",
522
522
session_dir. display( )
523
523
) ) ;
524
+ if std:: env:: var_os ( "CARGO" ) . is_some ( ) {
525
+ err. help (
526
+ "incremental compilation can be disabled by setting the \
527
+ environment variable CARGO_INCREMENTAL=0 (see \
528
+ https://doc.rust-lang.org/cargo/reference/profiles.html#incremental)",
529
+ ) ;
530
+ err. help (
531
+ "the entire build directory can be changed to a different \
532
+ filesystem by setting the environment variable CARGO_TARGET_DIR \
533
+ to a different path (see \
534
+ https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir)",
535
+ ) ;
536
+ }
524
537
}
525
538
err. emit ( ) ;
526
539
Err ( ErrorReported )
You can’t perform that action at this time.
0 commit comments