]> git.lizzy.rs Git - rust.git/commit
Add `-Z combine_cgu` flag
authorVictor Ding <victording@google.com>
Wed, 9 Sep 2020 04:51:16 +0000 (14:51 +1000)
committerVictor Ding <victording@google.com>
Wed, 9 Sep 2020 07:32:23 +0000 (17:32 +1000)
commitc81b43d8ac0dd68a49c4c65771c3c65a4ca61f93
tree98bb7d0e06691d6023b59ceee23511d4670473cc
parente82584a77d019bd5ee4254b5870270b1493763a6
Add `-Z combine_cgu` flag

Introduce a compiler option to let rustc combines all regular CGUs into
a single one at the end of compilation.

Part of Issue #64191
compiler/rustc_codegen_llvm/src/back/lto.rs
compiler/rustc_codegen_llvm/src/back/write.rs
compiler/rustc_codegen_llvm/src/lib.rs
compiler/rustc_codegen_ssa/src/back/write.rs
compiler/rustc_codegen_ssa/src/traits/write.rs
compiler/rustc_session/src/options.rs