mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
rust: Adapt for LLVM 18 and note additional test failures
This commit is contained in:
parent
670ac4fc54
commit
c87567a129
@ -339,6 +339,18 @@ EOF</userinput></screen>
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<!-- https://github.com/rust-lang/rust/pull/116672 -->
|
||||
<para>
|
||||
If building with system <xref linkend='llvm'/>,
|
||||
adapt rustc to allow it to build and function with the changes in
|
||||
LLVM-18:
|
||||
</para>
|
||||
|
||||
<screen><userinput remap="pre">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}</userinput></screen>
|
||||
|
||||
<para>
|
||||
Compile <application>Rust</application> by running the following
|
||||
commands:
|
||||
@ -378,6 +390,15 @@ python3 x.py test --verbose --no-fail-fast | tee rustc-testlog</userinput></scre
|
||||
are known to fail.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
With LLVM-18, two codegen tests named
|
||||
<!-- https://github.com/rust-lang/rust/pull/119523 -->
|
||||
<filename>abi-main-signature-32bit-c-int.rs</filename> and
|
||||
<!-- Don't know why yet ??? -->
|
||||
<filename>slice-reverse.rs</filename> are
|
||||
known to fail.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If <command>FileCheck</command> from <application>LLVM</application> has
|
||||
not been installed, all 47 tests from the <quote>assembly</quote> suite
|
||||
@ -467,7 +488,7 @@ ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para>
|
||||
<command>ln -svfn rustc-&rust-version; /opt/rustc</command>: if this is
|
||||
@ -604,7 +625,7 @@ EOF</userinput></screen>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seglistitem>
|
||||
<seg>
|
||||
cargo-clippy, cargo-fmt, cargo, clippy-driver, rust-gdb,
|
||||
rust-gdbgui, rust-lldb, rustc, rustdoc, and rustfmt
|
||||
|
Loading…
Reference in New Issue
Block a user