Skip to content

Commit 6f8cac0

Browse files
committed
fix(pkgs/jolt): Fix cargo script RUSTUP_TOOLCHAIN logic
When the guest is compiled with the standard library, cargo is spawned with RUSTUP_TOOLCHAIN variable set. In such cases we put the jolt rust fork as the "default" cargo to call. Before this commit, the condition worked in the opposite way.
1 parent a9a78f5 commit 6f8cac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jolt/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ in
5656
rm $out/bin/cargo
5757
cat <<EOF > $out/bin/cargo
5858
#!/bin/sh
59-
if [ -z "\''${RUSTUP_TOOLCHAIN+x}" ]
59+
if [ -n "\''${RUSTUP_TOOLCHAIN+x}" ]
6060
then
6161
export PATH="${jolt-guest-rust}/rust/build/host/stage2/bin:$PATH"
6262
fi

0 commit comments

Comments
 (0)