File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44# SPDX-License-Identifier: Apache-2.0
55
66set -xeuf -o pipefail
7-
8- find ../target/ -name " pkcs11_bindings.rs" -delete
7+ TARGET_DIR= ${CARGO_TARGET_DIR :- .. / target}
8+ find " $TARGET_DIR " -name " pkcs11_bindings.rs" -delete
99MAKE_GENERIC_BINDINGS=1 cargo build --features generate-bindings
10- find ../target/ -name " pkcs11_bindings.rs" | xargs -I ' {}' cp ' {}' src/bindings/generic.rs
10+ find " $TARGET_DIR " -name " pkcs11_bindings.rs" | xargs -I ' {}' cp ' {}' src/bindings/generic.rs
1111
1212targets=" aarch64-unknown-linux-gnu arm-unknown-linux-gnueabi loongarch64-unknown-linux-gnu x86_64-pc-windows-msvc i686-unknown-linux-gnu powerpc64-unknown-linux-gnu x86_64-unknown-linux-gnu x86_64-apple-darwin aarch64-apple-darwin x86_64-unknown-freebsd"
1313TARGET_INSTALLED=
@@ -21,7 +21,7 @@ for target in $targets; do
2121 fi
2222
2323 cargo build --target " $target " --features generate-bindings
24- find ../target /" $target " / -name " pkcs11_bindings.rs" | xargs -I ' {}' cp ' {}' src/bindings/" $target " .rs
24+ find " $TARGET_DIR " /" $target " / -name " pkcs11_bindings.rs" | xargs -I ' {}' cp ' {}' src/bindings/" $target " .rs
2525
2626 if [ " $TARGET_INSTALLED " == " $target " ]; then
2727 rustup target remove " $target "
You can’t perform that action at this time.
0 commit comments