rust/src
Matthias Krüger 873de7e106
Rollup merge of #123642 - onur-ozkan:restrict-llvm-option, r=Mark-Simulacrum
do not allow using local llvm while using rustc from ci

From: https://github.com/rust-lang/rust/issues/123586#issuecomment-2043296578

> Even if `llvm.download-ci-llvm` is set to true, `stage > 0` rustc will always use the prebuilt LLVM library which comes with ci-rustc. So I tried to use locally-built LLVM libraries in the ci-rustc by replacing the existing LLVM libraries with the locally built ones, and it appears that this is indeed a limitation of using `rust.download-rustc=true` as it fails with the following error:
>
> ```
> $ ./build/host/ci-rustc/bin/rustc --version
> ./build/host/ci-rustc/bin/rustc: symbol lookup error: /home/nimda/devspace/.other/rustc-builds/build/x86_64-unknown-linux-gnu/ci-rustc/bin/../lib/librustc_driver-a03ea465d8e03db1.so: undefined symbol: LLVMInitializeARMTargetInfo, version LLVM_18.1
> ```
>
> So, if `rust.download-rustc` is set to true and `llvm.download-ci-llvm` is false, I believe bootstrap should terminate the process (as it always uses prebuilt LLVM libraries from ci-rustc, there is no point to build LLVM locally) while parsing the configuration.

Resolves #123586

r? Mark-Simulacrum
2024-04-13 16:42:04 +02:00
..
bootstrap Rollup merge of #123642 - onur-ozkan:restrict-llvm-option, r=Mark-Simulacrum 2024-04-13 16:42:04 +02:00
ci Rollup merge of #123530 - 9names:build-rv32im, r=Mark-Simulacrum 2024-04-13 16:42:04 +02:00
doc document -Zlinker-features in the unstable book 2024-04-12 09:46:38 +00:00
etc Auto merge of #123317 - RalfJung:test-in-miri, r=m-ou-se,saethlin,onur-ozkan 2024-04-05 13:17:09 +00:00
librustdoc Auto merge of #123823 - matthiaskrgr:rollup-8zdtggx, r=matthiaskrgr 2024-04-11 21:56:11 +00:00
llvm-project@af8f9eb61a Update to LLVM 18.1.3 2024-04-06 21:07:35 +08:00
rustdoc-json-types Normalize layout test to protect against android alignment differences 2024-04-08 12:06:28 +00:00
tools Auto merge of #123874 - weihanglo:update-cargo, r=weihanglo 2024-04-13 02:56:34 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump stage0 2024-03-19 19:27:24 -04:00
version Bump to 1.79.0 2024-03-16 09:56:09 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.