Merge pull request #152197 from K900/patch-3
rust/hooks: ensure the build output ends up in the right place
This commit is contained in:
commit
61d501ee3f
|
@ -6,6 +6,9 @@ cargoBuildHook() {
|
|||
runHook preBuild
|
||||
|
||||
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
||||
# ensure the output doesn't end up in the subdirectory
|
||||
export CARGO_TARGET_DIR="$(pwd)/target"
|
||||
|
||||
pushd "${buildAndTestSubdir}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue