summary refs log tree commit diff
path: root/pkgs/build-support/rust
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-11 15:54:00 -0400
committerGitHub <noreply@github.com>2021-10-11 15:54:00 -0400
commitd81f8fa0a4add8efdf48222455868b1a399b8ed6 (patch)
tree04b0860aa71867fdb024ce0d568de46fd6f43a11 /pkgs/build-support/rust
parent9c995cedb52ceeb228b1bd270a71f3999925ef54 (diff)
parent22efdc986cff38031d801ff75a351146751496b0 (diff)
downloadnixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.tar
nixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.tar.gz
nixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.tar.bz2
nixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.tar.lz
nixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.tar.xz
nixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.tar.zst
nixpkgs-d81f8fa0a4add8efdf48222455868b1a399b8ed6.zip
Merge pull request #138822 from figsoda/fix-cargo-check-type
[staging] rustPlatform.cargoCheckHook: respect cargoCheckType
Diffstat (limited to 'pkgs/build-support/rust')
-rw-r--r--pkgs/build-support/rust/hooks/cargo-check-hook.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/rust/hooks/cargo-check-hook.sh b/pkgs/build-support/rust/hooks/cargo-check-hook.sh
index f0339afb38f..8a8e434f0ff 100644
--- a/pkgs/build-support/rust/hooks/cargo-check-hook.sh
+++ b/pkgs/build-support/rust/hooks/cargo-check-hook.sh
@@ -16,11 +16,11 @@ cargoCheckHook() {
         threads=1
     fi
 
-    if [ "${cargoBuildType}" != "debug" ]; then
-        cargoBuildProfileFlag="--${cargoBuildType}"
+    if [ "${cargoCheckType}" != "debug" ]; then
+        cargoCheckProfileFlag="--${cargoCheckType}"
     fi
 
-    argstr="${cargoBuildProfileFlag} --target @rustTargetPlatformSpec@ --frozen ${cargoTestFlags}";
+    argstr="${cargoCheckProfileFlag} --target @rustTargetPlatformSpec@ --frozen ${cargoTestFlags}";
 
     (
         set -x