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_codegen_llvm/src/back/write.rs | |
| 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_codegen_llvm/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs index 2b465ce40e7..534d32e8a90 100644 --- a/compiler/rustc_codegen_llvm/src/back/write.rs +++ b/compiler/rustc_codegen_llvm/src/back/write.rs @@ -790,7 +790,7 @@ pub(crate) unsafe fn codegen( let _timer = cgcx .prof .generic_activity_with_arg("LLVM_module_codegen_make_bitcode", &*module.name); - let thin = ThinBuffer::new(llmod); + let thin = ThinBuffer::new(llmod, config.emit_thin_lto); let data = thin.data(); if let Some(bitcode_filename) = bc_out.file_name() { |
