# see config.toml.example for more possible options # See the 8.4 book for an old example using shipped LLVM # e.g. if not installing clang, or using a version before 13.0 # 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 = 148671 [llvm] # When using system llvm prefer shared libraries link-shared = true # by default, rust will build for a myriad of architectures targets = "X86" [build] # omit docs to save time and space (default is to build them) docs = false # Only install these extended tools. Cargo, clippy, rustdoc, and rustfmt # are installed by a default rustup installation, and rust-src is needed # to build the Rust code in Linux kernel (in case you need such a kernel # feature). tools = ["cargo", "clippy", "rustdoc", "rustfmt", "src"] [install] prefix = "/usr/local" docdir = "share/doc/rustc-1.95.0" [rust] channel = "stable" # Enable the same optimizations as the official upstream build. lto = "thin" codegen-units = 1 # Don't build llvm-bitcode-linker which is only useful for the NVPTX # backend that we don't enable. llvm-bitcode-linker = false [target.x86_64-unknown-linux-gnu] # NB the output of llvm-config (i.e. help options) may be # dumped to the screen when config.toml is parsed. llvm-config = "/usr/local/bin/llvm-config" [target.i686-unknown-linux-gnu] # NB the output of llvm-config (i.e. help options) may be # dumped to the screen when config.toml is parsed. llvm-config = "/usr/local/bin/llvm-config"