use platform-independent tempdir

This commit is contained in:
Folkert de Vries 2022-08-03 21:58:02 +02:00
parent a345649856
commit 8f67129eae
4 changed files with 9 additions and 8 deletions

View file

@ -4237,7 +4237,7 @@ pub fn build_wasm_test_wrapper<'a, 'ctx, 'env>(
opt_level,
procedures,
entry_point,
Some(Path::new("/tmp/test.ll")),
Some(&std::env::temp_dir().join("test.ll")),
);
promote_to_wasm_test_wrapper(env, mod_solutions, entry_point.symbol, entry_point.layout)
@ -4254,7 +4254,7 @@ pub fn build_procedures_return_main<'a, 'ctx, 'env>(
opt_level,
procedures,
entry_point,
Some(Path::new("/tmp/test.ll")),
Some(&std::env::temp_dir().join("test.ll")),
);
promote_to_main_function(env, mod_solutions, entry_point.symbol, entry_point.layout)
@ -4272,7 +4272,7 @@ pub fn build_procedures_expose_expects<'a, 'ctx, 'env>(
opt_level,
procedures,
entry_point,
Some(Path::new("/tmp/test.ll")),
Some(&std::env::temp_dir().join("test.ll")),
);
let captures_niche = CapturesNiche::no_niche();