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
|
runHook preBuild
|
||||||
|
|
||||||
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
||||||
|
# ensure the output doesn't end up in the subdirectory
|
||||||
|
export CARGO_TARGET_DIR="$(pwd)/target"
|
||||||
|
|
||||||
pushd "${buildAndTestSubdir}"
|
pushd "${buildAndTestSubdir}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user