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.
1 parent 3b7ee43 commit cec0aeaCopy full SHA for cec0aea
src/lib.rs
@@ -207,7 +207,7 @@ impl CodegenBackend for GccCodegenBackend {
207
// NOTE: try the LTO frontend and check if it errors out. If so, do not embed the bitcode.
208
{
209
let temp_dir = TempDir::new().expect("cannot create temporary directory");
210
- let temp_file = temp_dir.into_path().join("result.asm");
+ let temp_file = temp_dir.keep().join("result.asm");
211
let context = Context::default();
212
let object_file_path = temp_file.to_str().expect("path to str");
213
context.compile_to_file(gccjit::OutputKind::ObjectFile, object_file_path);
0 commit comments