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 threads=1
fi fi
if [ "${cargoBuildType}" != "debug" ]; then if [ "${cargoCheckType}" != "debug" ]; then
cargoBuildProfileFlag="--${cargoBuildType}" cargoCheckProfileFlag="--${cargoCheckType}"
fi fi
argstr="${cargoBuildProfileFlag} --target @rustTargetPlatformSpec@ --frozen ${cargoTestFlags}"; argstr="${cargoCheckProfileFlag} --target @rustTargetPlatformSpec@ --frozen ${cargoTestFlags}";
( (
set -x set -x