82fb85a152
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.
12 lines
253 B
Makefile
12 lines
253 B
Makefile
-include ../tools.mk
|
|
|
|
all:
|
|
$(RUSTC) foo.rs
|
|
rm $(TMPDIR)/$(call BIN,foo)
|
|
$(RUSTC) foo.rs --crate-name bar
|
|
rm $(TMPDIR)/$(call BIN,bar)
|
|
$(RUSTC) foo1.rs
|
|
rm $(TMPDIR)/$(call BIN,foo)
|
|
$(RUSTC) foo1.rs -o $(TMPDIR)/bar1
|
|
rm $(TMPDIR)/$(call BIN,bar1)
|