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 Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_arena Make use of [wrapping_]byte_{add,sub} 2022-08-23 19:32:37 +04:00
rustc_ast Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
rustc_ast_lowering Rollup merge of #102623 - davidtwco:translation-eager, r=compiler-errors 2022-10-12 22:13:23 +05:30
rustc_ast_passes errors: AddToDiagnostic::add_to_diagnostic_with 2022-10-10 14:20:16 +01:00
rustc_ast_pretty Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
rustc_attr Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
rustc_borrowck Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_builtin_macros Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
rustc_codegen_cranelift more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_codegen_gcc Remove type argument of array_alloca and rename to byte_array_alloca 2022-10-02 13:42:14 +00:00
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 Remove -Ztime option. 2022-10-06 15:49:44 +11:00
rustc_error_codes fix small word dupe typos 2022-10-13 00:53:46 +08:00
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 Auto merge of #102975 - Dylan-DPC:rollup-vzuwsh2, r=Dylan-DPC 2022-10-12 17:48:31 +00:00
rustc_fs_util Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_graphviz Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_hir Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
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 Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8Ki 2022-10-10 00:09:42 +09:00
rustc_incremental Rollup merge of #102829 - compiler-errors:rename-impl-item-kind, r=TaKO8Ki 2022-10-10 00:09:42 +09:00
rustc_index Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
rustc_infer more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_interface Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
rustc_lexer Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
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 Avoid LLVM-deprecated Optional::hasValue 2022-09-26 16:51:18 -07:00
rustc_log Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_macros macros: simplify field ordering in diag derive 2022-10-10 14:20:16 +01:00
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 Rollup merge of #102675 - ouz-a:mir-technical-debt, r=oli-obk 2022-10-08 14:38:18 +02:00
rustc_mir_transform Rollup merge of #102778 - nbdd0121:mir, r=tmiasko 2022-10-08 14:38:19 +02:00
rustc_monomorphize Auto merge of #99324 - reez12g:issue-99144, r=jyn514 2022-10-06 03:01:57 +00:00
rustc_parse more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_parse_format Fix span of byte-escaped left format args brace 2022-09-28 13:47:17 -07:00
rustc_passes more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_plugin_impl Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
rustc_privacy Auto merge of #101679 - compiler-errors:rpitit-default-body, r=nikomatsakis 2022-10-12 21:03:47 +00:00
rustc_query_impl Rewrite representability 2022-10-07 09:33:46 -05:00
rustc_query_system query_system: finish migration 2022-10-10 14:20:16 +01:00
rustc_resolve Rollup merge of #103018 - Rageking8:more-dupe-word-typos, r=TaKO8Ki 2022-10-14 16:19:15 +05:30
rustc_save_analysis ImplItemKind::TyAlias => ImplItemKind::Type 2022-10-09 07:09:57 +00:00
rustc_serialize remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
rustc_session Allow use of -Clto=thin with -Ccodegen-units=1 in general 2022-10-26 21:03:28 -04:00
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span rename rustc_allocator_nounwind to rustc_nounwind 2022-10-11 22:47:31 +02:00
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 Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
rustc_transmute Remove TypeckResults from InferCtxt 2022-10-07 07:06:19 -05:00
rustc_ty_utils more dupe word typos 2022-10-14 12:57:56 +08:00
rustc_type_ir Remove from compiler/ crates 2022-09-29 16:49:04 +09:00