rust/compiler
bors 312c9a37f2 Auto merge of #101792 - lqd:rust-lld, r=petrochenkov
Only specify `--target` by default for `-Zgcc-ld=lld` on wasm

On macOS, it's not yet clear which cases of clang/OS/target/SDK version impact how to find ld/lld/rust-lld. The `--target` argument is not needed on our current targets with a vanilla config to do so, but may be in some cases ?

That is, things look to be different and more subtle than suggested in https://github.com/rust-lang/rust/issues/97402#issuecomment-1147404520.

Specifying this argument unconditionally currently breaks `-Zgcc-ld=lld` on the 10.7+ targets on x64 macOS. Vanilla configs on x64 and aarch64 don't seem to need it to be able to find `rust-lld`.

This fixes #101653 on macOS (I've tried on x64 and aarch64: vanilla installs with the most recent command line tools available for each of the OS versions I have access to, `run-make/issue-71519` passes).

I didn't expect the previous PRs to fail because of the existing tests, but CI does not actually run those tests yet, which explains the regressions. I was hoping to fix those in this PR but it's more involved (building lld is required for the tests to run, llvm/lld is not built on the test builders but on the dist builders, the dist builders don't run tests). This PR is just to unblock current users on macOS who have reported issues, but a regression could happen in the future by mistake until then.

r? `@petrochenkov`
2023-01-03 14:05:44 +00:00
..
rustc rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler 2022-10-02 17:49:36 +02:00
rustc_abi Auto merge of #105446 - erikdesjardins:vt-size, r=nikic 2022-12-18 22:01:39 +00:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Rollup merge of #106383 - Manishearth:ast-docs, r=compiler-errors 2023-01-02 15:39:19 -08:00
rustc_ast_lowering Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_ast_passes Allow impl ~const Trait opaque types 2022-12-15 11:26:15 +00:00
rustc_ast_pretty Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_attr rustc_attr remove ref patterns 2022-12-06 14:45:58 +00:00
rustc_baked_icu_data Update crate documentation of rustc_baked_icu_data crate 2022-11-18 14:46:36 -08:00
rustc_borrowck Verbose suggestions 2023-01-01 21:33:23 -08:00
rustc_builtin_macros Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_codegen_cranelift Auto merge of #105613 - Nilstrieb:rename-assert_uninit_valid, r=RalfJung 2022-12-21 23:20:04 +00:00
rustc_codegen_gcc Add missing anonymous lifetime 2022-12-20 22:34:42 +01:00
rustc_codegen_llvm Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses-for-that, r=cjgillot 2022-12-25 22:15:00 +01:00
rustc_codegen_ssa only specify --target by default for -Zgcc-ld=lld on wasm 2023-01-02 23:30:07 +00:00
rustc_const_eval Auto merge of #105085 - oli-obk:stop_promoting_all_the_things, r=RalfJung 2022-12-24 14:00:37 +00:00
rustc_data_structures Reduce HIR debug output 2023-01-02 20:15:48 +01:00
rustc_driver Only deduplicate stack traces for good path bugs 2022-12-31 02:14:26 +00:00
rustc_error_codes refactor: merge E0465 into E0464 2022-12-31 20:44:54 +13:00
rustc_error_messages Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514 2023-01-03 08:05:54 +00:00
rustc_errors Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_expand Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_feature Use the correct tracking issue for dyn_star 2023-01-01 19:56:10 +01:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Indicate anonymous lifetime 2022-12-23 15:59:53 +01:00
rustc_hir Reduce HIR debug output 2023-01-02 20:15:48 +01:00
rustc_hir_analysis Implement fix for #67535 2023-01-01 18:26:28 -08:00
rustc_hir_pretty Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_hir_typeck Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_incremental rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_index A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_infer Rollup merge of #106221 - Nilstrieb:rptr-more-like-ref-actually, r=compiler-errors 2022-12-29 13:16:04 +01:00
rustc_interface Ignore span references from diagnostics. 2022-12-25 18:48:42 +00:00
rustc_lexer Recover fn keyword as Fn trait in bounds 2022-12-27 06:14:46 +00:00
rustc_lint Rollup merge of #106248 - dtolnay:revertupcastlint, r=jackh726 2022-12-30 21:26:34 -08:00
rustc_lint_defs fix some typos 2022-12-25 00:43:50 +01:00
rustc_llvm llvm-wrapper: adapt for LLVM API changes 2022-12-11 09:14:50 +00:00
rustc_log Use IsTerminal in rustc_log 2022-10-16 15:10:40 +01:00
rustc_macros rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_metadata Auto merge of #105609 - bjorn3:shrink_rustc_dev, r=jyn514 2023-01-03 08:05:54 +00:00
rustc_middle Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_mir_build Rollup merge of #105975 - jeremystucki:rustc-remove-needless-lifetimes, r=eholk 2022-12-24 00:31:41 +01:00
rustc_mir_dataflow rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_mir_transform Reenable limited top-down MIR inlining 2023-01-01 22:01:29 -08:00
rustc_monomorphize Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr 2022-12-25 23:47:11 +00:00
rustc_parse Auto merge of #106268 - kraktus:patch-2, r=Nilstrieb 2022-12-30 06:59:13 +00:00
rustc_parse_format Add enum for find_width_map_from_snippet 2022-12-28 17:43:35 +01:00
rustc_passes Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy Prevent the creation of TraitRef without dedicated methods 2022-12-14 15:36:39 +00:00
rustc_query_impl Abolish QueryVTable in favour of more assoc items on QueryConfig 2023-01-02 20:22:19 +01:00
rustc_query_system Auto merge of #106307 - Nilstrieb:dynamic->static, r=cjgillot 2023-01-02 20:12:16 +00:00
rustc_resolve Rollup merge of #106221 - Nilstrieb:rptr-more-like-ref-actually, r=compiler-errors 2022-12-29 13:16:04 +01:00
rustc_save_analysis Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Auto merge of #84762 - cjgillot:resolve-span-opt, r=petrochenkov 2023-01-02 13:10:16 +00:00
rustc_symbol_mangling CFI: Monomorphize transparent ADTs before typeid 2022-12-29 10:21:07 -08:00
rustc_target fix some typos 2022-12-25 00:43:50 +01:00
rustc_trait_selection Merge multiple mutable borrows of immutable binding errors 2023-01-01 10:09:26 -08:00
rustc_traits rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
rustc_transmute Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_ty_utils Auto merge of #106371 - RalfJung:no-ret-position-noalias, r=nikic 2023-01-03 04:54:03 +00:00
rustc_type_ir A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00