File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ gccjit = "2.8"
3333[dev-dependencies ]
3434boml = " 0.3.1"
3535lang_tester = " 0.8.0"
36+ tempfile = " 3.20.0"
3637
3738[profile .dev ]
3839# By compiling dependencies with optimizations, performing tests gets much faster.
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ impl CodegenBackend for GccCodegenBackend {
205205 // NOTE: try the LTO frontend and check if it errors out. If so, do not embed the bitcode.
206206 {
207207 let temp_dir = TempDir :: new ( ) . expect ( "cannot create temporary directory" ) ;
208- let temp_file = temp_dir. into_path ( ) . join ( "result.asm" ) ;
208+ let temp_file = temp_dir. keep ( ) . join ( "result.asm" ) ;
209209 let context = Context :: default ( ) ;
210210 let object_file_path = temp_file. to_str ( ) . expect ( "path to str" ) ;
211211 context. compile_to_file ( gccjit:: OutputKind :: ObjectFile , object_file_path) ;
You can’t perform that action at this time.
0 commit comments