rust/src/doc
bors 9cb1998ea1 Auto merge of #122362 - Zoxc:rustc_driver_static_std, r=oli-obk,lqd,bjorn3,Kobzol
Link `std` statically in `rustc_driver`

This makes `rustc_driver` statically link to `std`. This is done by not passing `-C prefer-dynamic` when building `rustc_driver`. However building `rustc-main` won't work currently as it tries to dynamically link to both `rustc_driver` and `std` resulting in a crate graph with `std` duplicated. To fix that new command line option `-Z prefer_deps_of_dynamic` is added which prevents linking to a dylib if there's a static variant of it already statically linked into another dylib dependency.

The main motivation for this change is to enable `#[global_allocator]` to be used in `rustc_driver` allowing overriding the allocator used in rustc on all platforms.

---

Instead of adding `-Z prefer_deps_of_dynamic`, this PR is changed to crate opt-in to the linking change via the `rustc_private` feature instead, as that would be typically needed to link to `rustc_driver` anyway.

---

try-job: aarch64-apple
try-job: x86_64-msvc
try-job: i686-mingw
try-job: dist-x86_64-msvc
try-job: aarch64-gnu
2024-08-11 15:08:03 +00:00
..
book@67fa536768 Update books 2024-07-15 13:00:42 -04:00
edition-guide@5454de3d12 Update books 2024-07-15 13:00:42 -04:00
embedded-book@019f3928d8 Update books 2024-07-15 13:00:42 -04:00
man
nomicon@0ebdacadbd Update nomicon 2024-06-04 23:55:49 -07:00
reference@2e191814f1 Integrate mdbook-spec for the reference. 2024-07-25 17:38:22 -07:00
rust-by-example@89aecb6951 Update books 2024-07-15 13:00:42 -04:00
rustc Rollup merge of #128592 - evelynharthbrooke:master, r=Mark-Simulacrum 2024-08-11 07:51:51 +02:00
rustc-dev-guide@0c4d55cb59 Update books 2024-07-15 13:00:42 -04:00
rustdoc Rollup merge of #117932 - GuillaumeGomez:update-rustdoc-book, r=notriddle 2024-07-22 11:40:18 -05:00
style-guide style-guide: Clarify version-sorting 2024-07-17 13:24:32 -07:00
unstable-book Update the unstable book 2024-08-11 04:16:53 +02:00
complement-design-faq.md
complement-lang-faq.md
complement-project-faq.md
favicon.inc
footer.inc
full-toc.inc
grammar.md
guide-crates.md
guide-error-handling.md
guide-ffi.md
guide-macros.md
guide-ownership.md
guide-plugins.md Remove support for compiler plugins. 2023-11-04 08:50:46 +11:00
guide-pointers.md
guide-strings.md
guide-tasks.md
guide-testing.md
guide-unsafe.md
guide.md
index.md doc: add release notes to standalone doc bundle 2023-11-13 16:00:31 -07:00
intro.md
not_found.md
redirect.inc
reference.md
robots.txt
rust.css Fix heading anchors in doc pages. 2024-03-18 09:13:18 -07:00
rust.md
rustdoc.md
tutorial.md
version_info.html.template