rust/compiler
Matthias Krüger e81b994868
Rollup merge of #100636 - cutsoy:revert-77716, r=davidtwco
Revert "Revert "Allow dynamic linking for iOS/tvOS targets.""

This reverts commit 16e10bf81e (PR #77716).

The original original PR enabled `cdylib` builds for iOS. However this caused problems because:

> This new feature in Rust 1.46 added a lot of headache for iOS builds with cdylib targets. cdylib target is near impossible to build if you are using any crate with native dependencies (ex. openssl, libsodium, zmq). You can't just find .so files for all architectures to perform correct linking. Usual workflow is the following:
>
> 1. You build staticlib and rely that native dependencies will be linked as frameworks later
> 2. You setup right cocoapods in ObjectiveC/Swift wrapper.
>
> As cargo doesn't support platform-dependent crate types https://github.com/rust-lang/rust/pull/4881 as a result a lot of projects now broken on Rust 1.46

However, this will be soon a thing of the past since 1.64 brings us the long awaited much anticipated `--crate-type` flag.

> I see that this got merged recently: https://github.com/rust-lang/cargo/issues/10083. The --crate-type flag will get stabilized in 1.64. In 1.64, you could still get a successful iOS staticlib with cargo build --crate-type=statclib even if the crate has cdylib targets too. If I'm not mistaken, this solves the problem too so this PR could be reverted in 1.64 with relatively little headache.

So summing up, I think this PR can be reverted in 1.64. 🤞
2022-08-20 19:45:13 +02:00
..
rustc Don't rerun the build script for the compiler each time on linux 2022-07-10 23:57:25 -05:00
rustc_apfloat Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_arena Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_ast Auto merge of #100564 - nnethercote:box-ast-MacCall, r=spastorino 2022-08-20 10:26:54 +00:00
rustc_ast_lowering Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkov 2022-08-17 12:32:49 +02:00
rustc_ast_passes Reenable early feature-gates as future-compat warnings 2022-08-17 06:53:18 -05:00
rustc_ast_pretty Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_attr Adjust cfgs 2022-08-12 16:28:15 -04:00
rustc_borrowck Rollup merge of #100186 - compiler-errors:or-as_mut, r=fee1-dead 2022-08-20 07:08:57 +02:00
rustc_builtin_macros Auto merge of #100564 - nnethercote:box-ast-MacCall, r=spastorino 2022-08-20 10:26:54 +00:00
rustc_codegen_cranelift Rollup merge of #100208 - RalfJung:dyn-upcast-nop, r=petrochenkov 2022-08-19 12:26:41 +05:30
rustc_codegen_gcc Introduce an ArchiveBuilderBuilder 2022-07-28 09:08:47 +00:00
rustc_codegen_llvm Rollup merge of #100460 - cuviper:drop-llvm-12, r=nagisa 2022-08-16 06:05:57 +02:00
rustc_codegen_ssa Rollup merge of #100208 - RalfJung:dyn-upcast-nop, r=petrochenkov 2022-08-19 12:26:41 +05:30
rustc_const_eval Rollup merge of #100507 - cameron1024:suggest-lazy, r=compiler-errors 2022-08-20 07:08:59 +02:00
rustc_data_structures Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_driver Error on broken pipe but do not ICE 2022-08-02 01:08:50 +01:00
rustc_error_codes Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_error_messages Rollup merge of #100723 - 5225225:the-easy-ones, r=compiler-errors 2022-08-20 07:09:03 +02:00
rustc_errors Rollup merge of #99935 - CAD97:unstable-syntax-lints, r=petrochenkov 2022-08-20 19:45:10 +02:00
rustc_expand Auto merge of #100564 - nnethercote:box-ast-MacCall, r=spastorino 2022-08-20 10:26:54 +00:00
rustc_feature Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01: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 Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_hir_pretty Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_incremental Remove trait_of_item query. 2022-08-01 21:39:26 +02:00
rustc_index Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_infer Rollup merge of #100617 - chenyukang:fix-100605, r=compiler-errors 2022-08-20 07:09:00 +02:00
rustc_interface Migrate emoji identifier diagnostics to SessionDiagnostic 2022-08-17 05:07:47 +09:00
rustc_lexer Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_lint Rename some things related to literals. 2022-08-16 13:41:34 +10:00
rustc_lint_defs Rollup merge of #99935 - CAD97:unstable-syntax-lints, r=petrochenkov 2022-08-20 19:45:10 +02:00
rustc_llvm Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_log Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_macros Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_metadata Auto merge of #100209 - cjgillot:source-file-index, r=estebank 2022-08-19 15:31:25 +00:00
rustc_middle Rollup merge of #100081 - RalfJung:unused-unsafe-in-unsafe-fn, r=jackh726 2022-08-19 12:26:40 +05:30
rustc_mir_build Rollup merge of #100081 - RalfJung:unused-unsafe-in-unsafe-fn, r=jackh726 2022-08-19 12:26:40 +05:30
rustc_mir_dataflow Remove redundant TransferWrapper struct 2022-08-01 17:08:19 +02:00
rustc_mir_transform Rollup merge of #100522 - cjgillot:inline-polymorphic-recursion, r=tmiasko 2022-08-19 12:26:43 +05:30
rustc_monomorphize Refuse to codegen an upstream static. 2022-08-10 18:30:12 +02:00
rustc_parse Auto merge of #100564 - nnethercote:box-ast-MacCall, r=spastorino 2022-08-20 10:26:54 +00:00
rustc_parse_format Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_passes Rollup merge of #100031 - GoldsteinE:try-removing-the-field, r=michaelwoerister 2022-08-15 20:11:32 +02:00
rustc_plugin_impl remove currently unused deps 2022-06-13 22:20:51 +03:00
rustc_privacy Adjust cfgs 2022-08-12 16:28:15 -04:00
rustc_query_impl Rollup merge of #100723 - 5225225:the-easy-ones, r=compiler-errors 2022-08-20 07:09:03 +02:00
rustc_query_system Auto merge of #100441 - nnethercote:shrink-ast-Attribute, r=petrochenkov 2022-08-16 07:54:22 +00:00
rustc_resolve Rollup merge of #100592 - cjgillot:debug-import-kind, r=TaKO8Ki 2022-08-19 12:26:44 +05:30
rustc_save_analysis Remove DefId from AssocItemContainer. 2022-08-01 21:38:45 +02:00
rustc_serialize Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_session Reenable early feature-gates as future-compat warnings 2022-08-17 06:53:18 -05:00
rustc_smir Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_span Rollup merge of #100723 - 5225225:the-easy-ones, r=compiler-errors 2022-08-20 07:09:03 +02:00
rustc_symbol_mangling Auto merge of #95548 - rcvalle:rust-cfi-2, r=nagisa 2022-07-24 01:22:36 +00:00
rustc_target Rollup merge of #100636 - cutsoy:revert-77716, r=davidtwco 2022-08-20 19:45:13 +02:00
rustc_trait_selection Reword "Required because of the requirements on the impl of ..." 2022-08-18 21:08:08 +01:00
rustc_traits Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_transmute safe transmute: fix broken intradoc link 2022-08-02 14:44:23 +00:00
rustc_ty_utils Add bound_impl_subject and bound_return_ty 2022-08-03 01:02:46 -04:00
rustc_type_ir ADD - diagnostic lints to type_ir 2022-08-18 13:33:03 -04:00
rustc_typeck Rollup merge of #100500 - cjgillot:verify-self-predicate, r=lcnr 2022-08-20 19:45:12 +02:00