about summary refs log tree commit diff
path: root/pkgs/build-support/rust/hooks
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-09-21 13:00:25 -0400
committerfigsoda <figsoda@pm.me>2021-09-21 13:00:25 -0400
commit22efdc986cff38031d801ff75a351146751496b0 (patch)
tree6008d66c28bdbd359136561cc5de5d5a97cc4815 /pkgs/build-support/rust/hooks
parentaff0e5c5305391458ec6ec1deed4b9a6b553d499 (diff)
rustPlatform.cargoCheckHook: respect cargoCheckType
Diffstat (limited to 'pkgs/build-support/rust/hooks')
-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 f0339afb38fa6..8a8e434f0ff62 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