We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aa60061 + 232ca2d commit a537f91Copy full SHA for a537f91
src/config.rs
@@ -82,7 +82,10 @@ impl Config {
82
dependencies_crate_manifest_path: None,
83
dependency_builder: CommandBuilder::cargo(),
84
num_test_threads: std::thread::available_parallelism().unwrap(),
85
- out_dir: std::env::current_dir().unwrap().join("target/ui"),
+ out_dir: std::env::var_os("CARGO_TARGET_DIR")
86
+ .map(PathBuf::from)
87
+ .unwrap_or_else(|| std::env::current_dir().unwrap().join("target"))
88
+ .join("ui"),
89
edition: Some("2021".into()),
90
}
91
0 commit comments