Merge pull request #138822 from figsoda/fix-cargo-check-type

[staging] rustPlatform.cargoCheckHook: respect cargoCheckType
This commit is contained in:
figsoda 2021-10-11 15:54:00 -04:00 committed by GitHub
commit d81f8fa0a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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