Skip to content

Commit 7b9b928

Browse files
Generate libgccjit.so into the build folder
1 parent 4cc1018 commit 7b9b928

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

build_system/src/config.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,7 @@ impl ConfigInfo {
191191
}
192192

193193
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");
194+
let output_dir = Path::new(crate::BUILD_DIR).join("libgccjit");
200195

201196
let commit_hash_file = self.compute_path("libgccjit.version");
202197
let content = fs::read_to_string(&commit_hash_file).map_err(|_| {

0 commit comments

Comments
 (0)