rustPlatform.cargoCheckHook: respect cargoCheckType

This commit is contained in:
figsoda 2021-09-21 13:00:25 -04:00
parent aff0e5c530
commit 22efdc986c

View file

@ -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