We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
build
1 parent 267aaef commit 896b1a9Copy full SHA for 896b1a9
build_system/src/config.rs
@@ -191,12 +191,7 @@ impl ConfigInfo {
191
}
192
193
fn download_gccjit_if_needed(&mut self) -> Result<(), String> {
194
- let output_dir = Path::new(
195
- std::env::var("CARGO_TARGET_DIR")
196
- .as_deref()
197
- .unwrap_or("target"),
198
- )
199
- .join("libgccjit");
+ let output_dir = Path::new(crate::BUILD_DIR).join("libgccjit");
200
201
let commit_hash_file = self.compute_path("libgccjit.version");
202
let content = fs::read_to_string(&commit_hash_file).map_err(|_| {
0 commit comments