From 7754a463afd52bf46bd063953f1f56457b1f6b00 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Thu, 6 Nov 2025 14:09:04 -0500 Subject: [PATCH] the download-ci-llvm experiment turned out to be too unreliable --- src/autodiff/installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autodiff/installation.md b/src/autodiff/installation.md index c9b6c85ab..5300c1245 100644 --- a/src/autodiff/installation.md +++ b/src/autodiff/installation.md @@ -4,11 +4,11 @@ In the near future, `std::autodiff` should become available in nightly builds fo ## Build instructions -First you need to clone and configure the Rust repository: +First you need to clone and configure the Rust repository. Based on your preferences, you might also want to `--enable-clang` or `--enable-lld`. ```bash git clone git@github.com:rust-lang/rust cd rust -./configure --release-channel=nightly --enable-llvm-enzyme --enable-llvm-assertions --enable-option-checking --disable-docs --set llvm.download-ci-llvm=true +./configure --release-channel=nightly --enable-llvm-enzyme --enable-llvm-link-shared --enable-llvm-assertions --enable-ninja --enable-option-checking --disable-docs --set llvm.download-ci-llvm=false ``` Afterwards you can build rustc using: @@ -47,7 +47,7 @@ Then build rustc in a slightly altered way: ```bash git clone https://github.com/rust-lang/rust cd rust -./configure --release-channel=nightly --enable-llvm-enzyme --enable-llvm-assertions --enable-option-checking --disable-docs --set llvm.download-ci-llvm=true +./configure --release-channel=nightly --enable-llvm-enzyme --enable-llvm-link-shared --enable-llvm-assertions --enable-ninja --enable-option-checking --disable-docs --set llvm.download-ci-llvm=false ./x dist ``` We then copy the tarball to our host. The dockerid is the newest entry under `docker ps -a`.