📦 | Package info | ||
---|---|---|---|
🔙 | Parent Directory | - | |
mkdir -pv /opt/rustc-1.81.0 && ln -svfn rustc-1.81.0 /opt/rustc cat << EOF > config.toml # 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 = 127866 [llvm] targets = "X86" # When using system llvm prefer shared libraries link-shared = true [build] # omit docs to save time and space (default is to build them) docs = false # 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-1.81.0" docdir = "share/doc/rustc-1.81.0" [rust] channel = "stable" description = "for GLFS #47e0" # 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" EOF sed '/CondBitmap/,/^}/s/LLVM_VERSION.*/& \&\& LLVM_VERSION_LT(19, 0)/' \ -i compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp && rm -v tests/coverage/mcdc/{cond*,if,inline*,nest*,non_*}.rs
python3 x.py build
python3 x.py install rustc std && python3 x.py install --stage=1 cargo clippy rustfmt if [[ "\\$ULFS_PKG_TEST" == "YES" ]] then rm -fv /opt/rustc-1.81.0/share/doc/rustc-1.81.0/*.old && install -vm644 README.md \ /opt/rustc-1.81.0/share/doc/rustc-1.81.0 fi install -vdm755 /usr/share/zsh/site-functions && ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \ /usr/share/zsh/site-functions mv -v /etc/bash_completion.d/cargo \ /usr/share/bash-completion/completions cat > /etc/profile.d/rustc.sh << "EOF" # Begin /etc/profile.d/rustc.sh pathappend /opt/rustc/bin PATH # End /etc/profile.d/rustc.sh EOF source /etc/profile.d/rustc.sh
mkdir -pv /opt/rustc-1.81.0 && ln -svfn rustc-1.81.0 /opt/rustc cat << EOF > config.toml # 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 = 127866 [llvm] # When using system llvm prefer shared libraries link-shared = true [build] # Enable which targets to build. target = [ "x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu", ] # omit docs to save time and space (default is to build them) docs = false # 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-1.81.0" docdir = "share/doc/rustc-1.81.0" [rust] channel = "stable" description = "for GLFS #47e0" # 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] cc = "/usr/bin/gcc" cxx = "/usr/bin/g++" ar = "/usr/bin/gcc-ar" ranlib = "/usr/bin/gcc-ranlib" llvm-config = "/usr/bin/llvm-config" [target.i686-unknown-linux-gnu] cc = "/usr/bin/gcc" cxx = "/usr/bin/g++" ar = "/usr/bin/gcc-ar" ranlib = "/usr/bin/gcc-ranlib" EOF sed '/CondBitmap/,/^}/s/LLVM_VERSION.*/& \&\& LLVM_VERSION_LT(19, 0)/' \ -i compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp && rm -v tests/coverage/mcdc/{cond*,if,inline*,nest*,non_*}.rs
python3 x.py build
python3 x.py install rustc std && python3 x.py install --stage=1 cargo clippy rustfmt if [[ "\\\$ULFS_PKG_TEST" == "YES" ]] then rm -fv /opt/rustc-1.81.0/share/doc/rustc-1.81.0/*.old && install -vm644 README.md \ /opt/rustc-1.81.0/share/doc/rustc-1.81.0 fi install -vdm755 /usr/share/zsh/site-functions && ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \ /usr/share/zsh/site-functions mv -v /etc/bash_completion.d/cargo \ /usr/share/bash-completion/completions cat > /etc/profile.d/rustc.sh << "EOF" # Begin /etc/profile.d/rustc.sh pathappend /opt/rustc/bin PATH # End /etc/profile.d/rustc.sh EOF source /etc/profile.d/rustc.sh
Comments:
architectures_packages WHERE id = 265