diff options
| author | Ziv Dunkelman <ziv.dunkelman@nextsilicon.com> | 2022-06-08 17:30:16 +0300 |
|---|---|---|
| committer | Ziv Dunkelman <ziv.dunkelman@nextsilicon.com> | 2022-07-14 22:21:26 +0300 |
| commit | 724c91234dd49b88d70ebead406d09105695c3e5 (patch) | |
| tree | 9ec0f63fb06cfab879d0939d3e467d63decffa59 /compiler/rustc_session/src | |
| parent | 0ed9c64c3e63acac9bd77abce62501696c390450 (diff) | |
| download | rust-724c91234dd49b88d70ebead406d09105695c3e5.tar.gz rust-724c91234dd49b88d70ebead406d09105695c3e5.zip | |
rustc: add ability to output regular LTO bitcode modules
Adding the option to control from rustc CLI if the resulted ".o" bitcode module files are with thinLTO info or regular LTO info. Allows using "-lto-embed-bitcode=optimized" during linkage correctly. Signed-off-by: Ziv Dunkelman <ziv.dunkelman@nextsilicon.com>
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 01ff9e254f7..77c74a30220 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1277,6 +1277,8 @@ options! { "version of DWARF debug information to emit (default: 2 or 4, depending on platform)"), emit_stack_sizes: bool = (false, parse_bool, [UNTRACKED], "emit a section containing stack size metadata (default: no)"), + emit_thin_lto: bool = (true, parse_bool, [TRACKED], + "emit the bc module with thin LTO info (default: yes)"), fewer_names: Option<bool> = (None, parse_opt_bool, [TRACKED], "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR) \ (default: no)"), |
