about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-09-09 15:05:43 -0700
committerGitHub <noreply@github.com>2020-09-09 15:05:43 -0700
commit07dbe49ce9239c5caefe8556566cab0b36c60faf (patch)
tree031290f9b26e20a4fe2e466195414111f18ac0ff /compiler/rustc_session/src
parente2be5f568d1f60365b825530f5b5cb722460591b (diff)
parentc81b43d8ac0dd68a49c4c65771c3c65a4ca61f93 (diff)
downloadrust-07dbe49ce9239c5caefe8556566cab0b36c60faf.tar.gz
rust-07dbe49ce9239c5caefe8556566cab0b36c60faf.zip
Rollup merge of #75094 - 0dvictor:cgu, r=oli-obk
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
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
index ad36fa76986..848c7cb7d75 100644
--- a/compiler/rustc_session/src/options.rs
+++ b/compiler/rustc_session/src/options.rs
@@ -850,6 +850,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
         "enable the experimental Chalk-based trait solving engine"),
     codegen_backend: Option<String> = (None, parse_opt_string, [TRACKED],
         "the backend to use"),
+    combine_cgu: bool = (false, parse_bool, [TRACKED],
+        "combine CGUs into a single one"),
     crate_attr: Vec<String> = (Vec::new(), parse_string_push, [TRACKED],
         "inject the given attribute in the crate"),
     debug_macros: bool = (false, parse_bool, [TRACKED],