Is it possible to compile rust code without a tmp dir?
i.e.
rustc -C opt-level=3 -o "$DEST" "$@"
i'm getting the following error:
Compiling failed with exitcode 1, compiler output:
error: couldn't create a temp dir: No such file or directory (os error 2) at path "/tmp/rustcbQ2www"
error: aborting due to previous error
The reason tmp directory isn't available is this is adding rust support for DomJudge, and they run contestants codes in a chroot without tmp, or with potentially a different tmp folder name.
failing that, is there a way to change the tmp dir that rustc uses? e.g. an environment variable e.g. >>TMPDIR=/my_tmp_tmp