]> git.lizzy.rs Git - rust.git/commit
rustc: Mix extra-filename in temp outputs
authorAlex Crichton <alex@alexcrichton.com>
Tue, 15 Jul 2014 16:13:58 +0000 (09:13 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 19 Jul 2014 01:09:08 +0000 (18:09 -0700)
commit82fb85a15223bf2e7345197bbbc96c399292d54f
tree9673f5c72c57ad8b6069b6e9914c2ad79a146a2a
parent50868db351d5261346afe855f88235d044b80195
rustc: Mix extra-filename in temp outputs

When invoking the compiler in parallel, the intermediate output of the object
files and bytecode can stomp over one another if two crates with the same name
are being compiled.

The output file is already being disambiguated with `-C extra-filename`, so this
commit alters the naming of the temporary files to also mix in the extra
filename to ensure that file names don't clash.
src/librustc/back/link.rs
src/librustc/back/lto.rs
src/librustc/driver/driver.rs
src/test/compile-fail/crate-name-mismatch.rs
src/test/run-make/crate-name-priority/Makefile
src/test/run-make/extra-filename-with-temp-outputs/Makefile [new file with mode: 0644]
src/test/run-make/extra-filename-with-temp-outputs/foo.rs [new file with mode: 0644]
src/test/run-pass/crate-name-attr-used.rs