···
···
···
# Use shared mrustc/minicargo/llvm instead of rebuilding them
"MRUSTC=${mrustc}/bin/mrustc"
#"MINICARGO=${mrustc-minicargo}/bin/minicargo" # FIXME: we need to rebuild minicargo locally so --manifest-overrides is applied
79
-
"LLVM_CONFIG=${llvm_12.dev}/bin/llvm-config"
79
+
#"LLVM_CONFIG=${llvm_12.dev}/bin/llvm-config"
"RUSTC_TARGET=${stdenv.targetPlatform.rust.rustcTarget}"
···
platforms = [ "x86_64-linux" ];
156
+
# rustc 1.54 only supports LLVM 12, which was removed from Nixpkgs.
157
+
# mrustc can bootstrap up to rustc 1.74, which supported LLVM 17,
158
+
# which has also been removed.
160
+
# 1.74 also shipped with the Cranelift backend, so perhaps that
161
+
# could be used instead? Alternatively, it may be possible to
162
+
# backport the upstream patches to support LLVM 18 to 1.74.
163
+
# Assuming LLVM 18 is still in Nixpkgs by the time you read this
164
+
# comment, anyway. But if not, then maybe mrustc has been updated
165
+
# to support newer rustc versions? Hope springs eternal.
167
+
# (Note that you still have to “draw the rest of the owl” to
168
+
# bootstrap the chain of rustc versions between this bootstrap
169
+
# and the version currently used in Nixpkgs, anyway, so this was
170
+
# already not useful for bootstrapping a Rust compiler for use with
171
+
# Nixpkgs without a lot of additional work. See Guix’s Rust
172
+
# bootstrap chain, or the non‐Rust minimal bootstrap in Guix and
173
+
# Nixpkgs, for inspiration.)