-
Couldn't load subscription status.
- Fork 13.9k
Description
"Specifically, it's somewhere here:
rust/compiler/rustc_codegen_ssa/src/back/link.rs
Lines 102 to 107 in cbfdf0b
| if outputs.outputs.should_link() { | |
| let tmpdir = TempFileBuilder::new() | |
| .prefix("rustc") | |
| .tempdir() | |
| .unwrap_or_else(|error| sess.dcx().emit_fatal(errors::CreateTempDir { error })); | |
| let path = MaybeTempDir::new(tmpdir, sess.opts.cg.save_temps); |
"but yeah, in any case, we probably should override that, to point it under
build/test/$test_suite_name/$test_suite_revisioned_compare_moded/__temp/"(E.g. by setting TMP_DIR/TEMP/TMP or whatever the env vars were called)
"Can you open an E-needs-investigation issue?" ~ @jieyouxu https://discord.com/channels/273534239310479360/957720175619215380/1349912066772963469
Spotted in #138157 (comment), the bors job failed with
--- stderr -------------------------------
error: couldn't create a temp dir: Access is denied. (os error 5) at path "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcfzdxGW"
error: aborting due to 1 previous error
It would be nice if those stayed in the build/target directory, which is more likely to have a defender exclusion (and thus more likely to not have that access error). It would also be helpful to stay on the Dev Drive on Windows 11 if people have that set up, rather than use C: which typically has the most extra filesystem access costs (from filters and such).
And it'd just be nice not to have a bazillion of these left over after running tests a bunch :)