diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-13 16:42:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 16:42:04 +0200 |
| commit | 873de7e106dd24de375bd315c9417340ba01d32c (patch) | |
| tree | dfaec28624ac406b989484a867115a9e2b5cfed5 /compiler/rustc_llvm/llvm-wrapper | |
| parent | 7a69120a0865f87c7378af1f7e140bcb8250a168 (diff) | |
| parent | a7aa7fdd1261995591fa739611a8af87adaf099e (diff) | |
| download | rust-873de7e106dd24de375bd315c9417340ba01d32c.tar.gz rust-873de7e106dd24de375bd315c9417340ba01d32c.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
