mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
LLVM; Rustc: Try to be more consistent in multilib format.
This commit is contained in:
parent
897a092b64
commit
5321be9e06
@ -42,6 +42,10 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>October 18th, 2024</para>
|
<para>October 18th, 2024</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[Zeckmathederg] - LLVM; Rustc: Try to be more consistent in
|
||||||
|
multilib format.</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>[Zeckmathederg] - Bash Startup Files: Added.</para>
|
<para>[Zeckmathederg] - Bash Startup Files: Added.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -211,6 +211,11 @@ ninja</userinput></screen>
|
|||||||
<screen role="root"><userinput>ninja install &&
|
<screen role="root"><userinput>ninja install &&
|
||||||
cp bin/FileCheck /usr/bin</userinput></screen>
|
cp bin/FileCheck /usr/bin</userinput></screen>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>32-bit Installation of LLVM</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If you are doing multilib, you will also need to install the
|
If you are doing multilib, you will also need to install the
|
||||||
32-bit runtime libraries. Install them by doing the following:
|
32-bit runtime libraries. Install them by doing the following:
|
||||||
|
@ -214,82 +214,38 @@ ln -svfn rustc-&rust-version; /opt/rustc</userinput></screen>
|
|||||||
configure the build.
|
configure the build.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen><userinput>cat << EOF > config.toml
|
<screen><userinput>cat > config.toml << "EOF"
|
||||||
<literal># see config.toml.example for more possible options.
|
<literal># see config.toml.example for more possible options.
|
||||||
# Tell x.py the editors have reviewed the content of this file
|
# Tell x.py the editors have reviewed the content of this file
|
||||||
# and updated it to follow the major changes of the building system,
|
# and updated it to follow the major changes of the building system,
|
||||||
# so x.py will not warn us to do such a review.
|
# so x.py will not warn us to do such a review.
|
||||||
change-id = &change-id;
|
change-id = &change-id;
|
||||||
|
|
||||||
[llvm]
|
[llvm]</literal>
|
||||||
targets = "X86"
|
EOF
|
||||||
|
if [ ! -f /usr/lib32/libc.so.6 ]; then
|
||||||
# When using system llvm prefer shared libraries
|
cat >> config.toml << "EOF"
|
||||||
|
<literal>targets = "X86"
|
||||||
|
</literal>
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
cat >> config.toml << "EOF"
|
||||||
|
<literal># When using system llvm prefer shared libraries
|
||||||
link-shared = true
|
link-shared = true
|
||||||
|
</literal>
|
||||||
[build]
|
EOF
|
||||||
# omit docs to save time and space (default is to build them)
|
if [ -f /usr/lib32/libc.so.6 ]; then
|
||||||
docs = false
|
cat >> config.toml << "EOF"
|
||||||
|
<literal>[build]
|
||||||
# install extended tools: cargo, clippy, etc
|
|
||||||
extended = true
|
|
||||||
|
|
||||||
# Do not query new versions of dependencies online.
|
|
||||||
locked-deps = true
|
|
||||||
|
|
||||||
# Specify which extended tools (those from the default install).
|
|
||||||
tools = ["cargo", "clippy", "rustdoc", "rustfmt"]
|
|
||||||
|
|
||||||
# Use the source code shipped in the tarball for the dependencies.
|
|
||||||
# The combination of this and the "locked-deps" entry avoids downloading
|
|
||||||
# many crates from Internet, and makes the Rustc build more stable.
|
|
||||||
vendor = true
|
|
||||||
|
|
||||||
[install]
|
|
||||||
prefix = "/opt/rustc-&rust-version;"
|
|
||||||
docdir = "share/doc/rustc-&rust-version;"
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
channel = "stable"
|
|
||||||
description = "for GLFS &version;"
|
|
||||||
|
|
||||||
# Uncomment if FileCheck has been installed.
|
|
||||||
#codegen-tests = false
|
|
||||||
|
|
||||||
# Enable the same optimizations as the official upstream build.
|
|
||||||
lto = "thin"
|
|
||||||
codegen-units = 1
|
|
||||||
|
|
||||||
[target.x86_64-unknown-linux-gnu]
|
|
||||||
llvm-config = "/usr/bin/llvm-config"
|
|
||||||
|
|
||||||
[target.i686-unknown-linux-gnu]
|
|
||||||
llvm-config = "/usr/bin/llvm-config"</literal>
|
|
||||||
EOF</userinput></screen>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
Or create a <filename>config.toml</filename> tailored for multilib:
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<screen><userinput>cat << EOF > config.toml
|
|
||||||
<literal># see config.toml.example for more possible options.
|
|
||||||
# Tell x.py the editors have reviewed the content of this file
|
|
||||||
# and updated it to follow the major changes of the building system,
|
|
||||||
# so x.py will not warn us to do such a review.
|
|
||||||
change-id = &change-id;
|
|
||||||
|
|
||||||
[llvm]
|
|
||||||
# When using system llvm prefer shared libraries
|
|
||||||
link-shared = true
|
|
||||||
|
|
||||||
[build]
|
|
||||||
# Enable which targets to build.
|
|
||||||
target = [
|
target = [
|
||||||
"x86_64-unknown-linux-gnu",
|
"x86_64-unknown-linux-gnu",
|
||||||
"i686-unknown-linux-gnu",
|
"i686-unknown-linux-gnu",
|
||||||
]
|
]
|
||||||
|
</literal>
|
||||||
# omit docs to save time and space (default is to build them)
|
EOF
|
||||||
|
fi
|
||||||
|
cat >> config.toml << "EOF"
|
||||||
|
<literal># omit docs to save time and space (default is to build them)
|
||||||
docs = false
|
docs = false
|
||||||
|
|
||||||
# install extended tools: cargo, clippy, etc
|
# install extended tools: cargo, clippy, etc
|
||||||
@ -320,8 +276,11 @@ description = "for GLFS &version;"
|
|||||||
# Enable the same optimizations as the official upstream build.
|
# Enable the same optimizations as the official upstream build.
|
||||||
lto = "thin"
|
lto = "thin"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
</literal>
|
||||||
[target.x86_64-unknown-linux-gnu]
|
EOF
|
||||||
|
if [ -f /usr/lib32/libc.so.6 ]; then
|
||||||
|
cat >> config.toml << "EOF"
|
||||||
|
<literal>[target.x86_64-unknown-linux-gnu]
|
||||||
cc = "/usr/bin/gcc"
|
cc = "/usr/bin/gcc"
|
||||||
cxx = "/usr/bin/g++"
|
cxx = "/usr/bin/g++"
|
||||||
ar = "/usr/bin/gcc-ar"
|
ar = "/usr/bin/gcc-ar"
|
||||||
@ -333,7 +292,23 @@ cc = "/usr/bin/gcc"
|
|||||||
cxx = "/usr/bin/g++"
|
cxx = "/usr/bin/g++"
|
||||||
ar = "/usr/bin/gcc-ar"
|
ar = "/usr/bin/gcc-ar"
|
||||||
ranlib = "/usr/bin/gcc-ranlib"</literal>
|
ranlib = "/usr/bin/gcc-ranlib"</literal>
|
||||||
EOF</userinput></screen>
|
EOF
|
||||||
|
else
|
||||||
|
cat >> config.toml << "EOF"
|
||||||
|
<literal>[target.x86_64-unknown-linux-gnu]
|
||||||
|
llvm-config = "/usr/bin/llvm-config"
|
||||||
|
|
||||||
|
[target.i686-unknown-linux-gnu]
|
||||||
|
llvm-config = "/usr/bin/llvm-config"</literal>
|
||||||
|
EOF
|
||||||
|
fi</userinput></screen>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
The above commands will create config.toml differently depending
|
||||||
|
on if a few checks pass/fail. This was done to avoid confusion.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
Reference in New Issue
Block a user