Skip to content

Commit

Permalink
Go: fix modules test (#3203)
Browse files Browse the repository at this point in the history
* Go: fix modules test

Signed-off-by: James Xin <[email protected]>
  • Loading branch information
jamesx-improving authored and jbrinkman committed Feb 18, 2025
1 parent 6783219 commit b8cbe64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,24 @@ build-glide-client:
cargo build --release
cbindgen --config cbindgen.toml --crate glide-rs --output lib.h --lang c
@if [ "$$(uname)" = "Darwin" ] && [ "$$(arch)" = "arm64" ]; then \
echo "Platform: aarch64-apple-darwin"; \
strip -x target/release/libglide_rs.a; \
mkdir -p rustbin/aarch64-apple-darwin; \
cp target/release/libglide_rs.a rustbin/aarch64-apple-darwin/; \
elif [ "$$(uname)" = "Linux" ]; then \
strip --strip-unneeded target/release/libglide_rs.a; \
if [ "$$(arch)" = "arm64" ]; then \
if [ "$$(arch)" = "arm64" ] || [ "$$(arch)" = "aarch64" ]; then \
echo "Platform: aarch64-unknown-linux-gnu"; \
mkdir -p rustbin/aarch64-unknown-linux-gnu; \
cp target/release/libglide_rs.a rustbin/aarch64-unknown-linux-gnu/; \
elif [ "$$(arch)" = "x86_64" ]; then \
echo "Platform: x86_64-unknown-linux-gnu"; \
mkdir -p rustbin/x86_64-unknown-linux-gnu; \
cp target/release/libglide_rs.a rustbin/x86_64-unknown-linux-gnu/; \
fi; \
else \
echo "Unsupported platform: $(shell uname), $(shell arch)"; \
exit 1; \
fi


Expand Down

0 comments on commit b8cbe64

Please sign in to comment.