rust/compiler/rustc_codegen_ssa/src
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
..
back Rollup merge of #77202 - ehuss:defer-apple-sdkroot, r=petrochenkov 2020-10-01 02:13:34 +02:00
coverageinfo mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
debuginfo Simplify some match statements on `DefPathDataName' 2020-09-25 22:46:15 +01:00
mir Auto merge of #73453 - erikdesjardins:tuplayout, r=eddyb 2020-09-25 14:42:20 +00:00
traits Rollup merge of #77161 - est31:swich_len_already_trusted, r=petrochenkov 2020-09-26 12:58:24 +02:00
base.rs Remove DeclareMethods 2020-09-18 13:11:59 +02:00
common.rs Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
glue.rs Change ty.kind to a method 2020-09-04 17:47:51 +02:00
lib.rs Rollup merge of #77161 - est31:swich_len_already_trusted, r=petrochenkov 2020-09-26 12:58:24 +02:00
meth.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
mono_item.rs ty: remove obsolete printer 2020-08-30 18:59:07 +01:00