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 4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
6
set -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
9
9
MAKE_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
11
11
12
12
targets=" 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"
13
13
TARGET_INSTALLED=
@@ -21,7 +21,7 @@ for target in $targets; do
21
21
fi
22
22
23
23
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
25
25
26
26
if [ " $TARGET_INSTALLED " == " $target " ]; then
27
27
rustup target remove " $target "
You can’t perform that action at this time.
0 commit comments