]> git.lizzy.rs Git - rust.git/commit
When given `rustc -C codegen-units=4 -o output --emit=obj`, reset units back to 1.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 4 Dec 2015 18:35:16 +0000 (19:35 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 8 Dec 2015 04:37:04 +0000 (05:37 +0100)
commitf90c21a417b8279196ec65077863f9ecc5b05e39
tree9e08c797d43c388bd7cee7fad8f180779c6a69e4
parent77ed39cfe37a17737e0b2256b1a1689e01c32b26
When given `rustc -C codegen-units=4 -o output --emit=obj`, reset units back to 1.

Fix #30063

Note: while this code is careful to handle the case of mutliple emit
types (e.g. `--emit=asm,obj`) by reporting all the emit types that
conflict with codegen units in its warnings, an invocation with
multiple emit types *and* `-o PATH` will continue to ignore the
requested target path (with a warning), as it already does today,
since the code that checks for that is further downstream.
src/librustc/session/config.rs