rust/compiler
Wesley Wiser 7c6345d175 Allow use of -Clto=thin with -Ccodegen-units=1 in general
The current logic to ignore ThinLTO when `-Ccodegen-units=1` makes sense
for local ThinLTO but even in this scenario, a user may still want
(non-local) ThinLTO for the purpose of optimizing dependencies into the
final crate which is being compiled with 1 CGU.

The previous behavior was even more confusing because if you were
generating a binary (`--emit=link`), then you would get ThinLTO but if
you asked for LLVM IR or bytecode, then it would silently change to
using regular LTO.

With this change, we only override the defaults for local ThinLTO if you
ask for a single output such as LLVM IR or bytecode and in all other
cases honor the requested LTO setting.
2022-10-26 21:03:28 -04:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_borrowck Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_builtin_macros
rustc_codegen_cranelift more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_codegen_ssa Rollup merge of #102641 - eholk:dyn-star-box, r=compiler-errors 2022-10-13 09:41:25 +09:00
rustc_const_eval Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_data_structures more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_driver
rustc_error_codes
rustc_error_messages Auto merge of #102684 - JhonnyBillM:delete-target-data-layout-errors-wrapper, r=davidtwco 2022-10-14 04:35:22 +00:00
rustc_errors UPDATE - Move IntoDiagnosticArg implementations to diagnostic_impls file 2022-10-12 16:55:28 -04:00
rustc_expand more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_interface
rustc_lexer
rustc_lint more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_lint_defs more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Add suggestion to the "missing native library" error 2022-10-13 07:35:36 -04:00
rustc_middle Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_mir_build Rollup merge of #103031 - est31:match_guard_irrefutable_let, r=oli-obk 2022-10-14 16:19:16 +05:30
rustc_mir_dataflow
rustc_mir_transform
rustc_monomorphize
rustc_parse more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_parse_format
rustc_passes more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_plugin_impl
rustc_privacy Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakis 2022-10-12 21:03:47 +00:00
rustc_query_impl
rustc_query_system
rustc_resolve Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_save_analysis
rustc_serialize
rustc_session Allow use of -Clto=thin with -Ccodegen-units=1 in general 2022-10-26 21:03:28 -04:00
rustc_smir
rustc_span
rustc_symbol_mangling more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_target more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_trait_selection Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_traits
rustc_transmute
rustc_ty_utils more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_type_ir