rust/compiler
Dylan DPC 37df40bd1c
Rollup merge of #77202 - ehuss:defer-apple-sdkroot, r=petrochenkov
Defer Apple SDKROOT detection to link time.

This defers the detection of the SDKROOT for Apple iOS/tvOS targets to link time, instead of when the `Target` is defined. This allows commands that don't need to link to work (like `rustdoc` or `rustc --print=target-list`). This also makes `--print=target-list` a bit faster.

This also removes the note in the platform support documentation about these targets being missing. When I wrote it, I misunderstood how the SDKROOT stuff worked.

Notes:
* This means that JSON spec targets can't explicitly override these flags. I think that is probably fine, as I believe the value is generally required, and can be set with the SDKROOT environment variable.
* This changes `x86_64-apple-tvos` to use `appletvsimulator`. I think the original code was wrong (it was using `iphonesimulator`). Also, `x86_64-apple-tvos` seems broken in general, and I cannot build it locally. The `data_layout` does not appear to be correct (it is a copy of the arm64 layout instead of the x86_64 layout). I have not tried building Apple's LLVM to see if that helps, but I suspect it is just wrong (I'm uncertain since I don't know how the tvOS simulator works with its bitcode-only requirements).
* I'm tempted to remove the use of `Result` for built-in target definitions, since I don't think they should be fallible. This was added in https://github.com/rust-lang/rust/pull/34980, but that only relates to JSON definitions. I think the built-in targets shouldn't fail. I can do this now, or not.

Fixes #36156
Fixes #76584
2020-10-01 02:13:34 +02:00
..
rustc just max_level_info 2020-09-11 09:37:51 -07:00
rustc_apfloat /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_arena Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
rustc_ast tidy 2020-09-23 22:08:30 +02:00
rustc_ast_lowering simplfy condition in ItemLowerer::with_trait_impl_ref() 2020-09-16 23:09:57 +02:00
rustc_ast_passes use matches!() macro for simple if let conditions 2020-09-18 20:28:35 +02:00
rustc_ast_pretty Fully integrate token collection for additional AST structs 2020-09-10 17:58:14 -04:00
rustc_attr Remove rustc_allow_const_fn_ptr 2020-09-27 10:46:41 -07:00
rustc_builtin_macros expand: Stop un-interpolating NtIdents before passing them to built-in macros 2020-09-28 23:10:44 +03:00
rustc_codegen_llvm Add support for cmse_nonsecure_entry attribute 2020-09-30 15:48:59 +01:00
rustc_codegen_ssa Rollup merge of #77202 - ehuss:defer-apple-sdkroot, r=petrochenkov 2020-10-01 02:13:34 +02:00
rustc_data_structures Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
rustc_driver Rollup merge of #76474 - bjorn3:driver_selected_codegen, r=oli-obk 2020-09-28 18:39:40 +02:00
rustc_error_codes Add more tests and check for ABI 2020-09-30 18:10:17 +01:00
rustc_errors /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_expand expand: Minor fn ptr call cleanup 2020-09-28 23:10:48 +03:00
rustc_feature Add support for cmse_nonsecure_entry attribute 2020-09-30 15:48:59 +01:00
rustc_fs_util mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
rustc_graphviz /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_hir Auto merge of #76955 - jyn514:refactor-diagnostics, r=euclio 2020-09-27 08:12:29 +00:00
rustc_hir_pretty mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
rustc_incremental /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_index cache types during normalization 2020-09-19 17:27:13 +02:00
rustc_infer Revert "Add an unused field of type Option<DefId> to ParamEnv struct." 2020-09-26 21:01:09 -07:00
rustc_interface Add option to pass a custom codegen backend from a driver 2020-09-27 14:16:42 +02:00
rustc_lexer Fix typo in rustc_lexer docs 2020-09-21 05:43:39 +02:00
rustc_lint Separate private_intra_doc_links and broken_intra_doc_links into separate lints 2020-09-27 09:58:29 -04:00
rustc_llvm Update LLVM and add Unsupported diagnostic 2020-09-30 14:57:37 +01:00
rustc_macros Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
rustc_metadata Auto merge of #77118 - exrook:stability-generic-parameters-2, r=varkor 2020-09-27 12:51:21 +00:00
rustc_middle Add support for cmse_nonsecure_entry attribute 2020-09-30 15:48:59 +01:00
rustc_mir Rollup merge of #77037 - matthiaskrgr:cl42ppy, r=Dylan-DPC 2020-09-30 20:56:05 +02:00
rustc_mir_build Speed up IntRange::from_pat 2020-09-26 20:00:54 -07:00
rustc_parse Fix recursive nonterminal expansion during pretty-print/reparse check 2020-09-28 19:14:42 -04:00
rustc_parse_format /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_passes Rollup merge of #77296 - tmiasko:liveness-option, r=ecstatic-morse 2020-09-30 20:56:12 +02:00
rustc_plugin_impl /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_privacy /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_query_system update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00
rustc_resolve /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_save_analysis /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_serialize Deduplicate and generalize some (de/)serializer impls 2020-09-26 14:55:42 +02:00
rustc_session [mir-opt] Introduce a new flag to enable experimental/unsound mir opts 2020-09-27 19:21:01 -04:00
rustc_span Add support for cmse_nonsecure_entry attribute 2020-09-30 15:48:59 +01:00
rustc_symbol_mangling Implement Display for DisambiguatedDefPathData and DefPathData 2020-09-25 22:46:15 +01:00
rustc_target Rollup merge of #77202 - ehuss:defer-apple-sdkroot, r=petrochenkov 2020-10-01 02:13:34 +02:00
rustc_trait_selection Revert "Add an unused field of type Option<DefId> to ParamEnv struct." 2020-09-26 21:01:09 -07:00
rustc_traits Update chalk to 0.29.0 2020-09-27 15:54:07 +02:00
rustc_ty Rollup merge of #77155 - lcnr:ImplSource, r=ecstatic-morse 2020-09-25 19:42:48 +02:00
rustc_typeck Auto merge of #77372 - jonas-schievink:rollup-e5bdzga, r=jonas-schievink 2020-09-30 20:49:27 +00:00