diff --git a/general/prog/rust.xml b/general/prog/rust.xml index e127c1f74e..d1a49252c1 100644 --- a/general/prog/rust.xml +++ b/general/prog/rust.xml @@ -339,6 +339,18 @@ EOF + + + If building with system , + adapt rustc to allow it to build and function with the changes in + LLVM-18: + + +sed 's/f[0-9][0-9]:/i128:128-&/' \ + -i compiler/rustc_target/src/spec/targets/{i?86,x86_64}*.rs && +sed '/static_assert_size!\((Lit|MetaItemLit|BasicBlockData|Terminator)/d' \ + -ri compiler/{rustc_ast/src/ast.rs,rustc_middle/src/mir/mod.rs} + Compile Rust by running the following commands: @@ -378,6 +390,15 @@ python3 x.py test --verbose --no-fail-fast | tee rustc-testlog + + With LLVM-18, two codegen tests named + + abi-main-signature-32bit-c-int.rs and + + slice-reverse.rs are + known to fail. + + If FileCheck from LLVM has not been installed, all 47 tests from the assembly suite @@ -467,7 +488,7 @@ ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \ - Command Explanations + Command Explanations ln -svfn rustc-&rust-version; /opt/rustc: if this is @@ -604,7 +625,7 @@ EOF Installed Libraries Installed Directories - + cargo-clippy, cargo-fmt, cargo, clippy-driver, rust-gdb, rust-gdbgui, rust-lldb, rustc, rustdoc, and rustfmt