Skip to content

Commit

Permalink
chore: only arm64 with cross
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Nov 18, 2024
1 parent 38acf9f commit e019f4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/cross-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ fi

# 2. Build the binary

# build "bolt-sidecar" with "cross" as it's the only working method for now.
if [[ "$PACKAGE" == "bolt-sidecar" ]]; then
echo "Building $PACKAGE with cross"
# build "bolt-sidecar" on aarch64 with "cross" as it's the only working method for now.
if [[ "$PACKAGE" == "bolt-sidecar" && "$TARGET_ARCH" == "aarch64-unknown-linux-gnu" ]]; then
echo "Building $PACKAGE for aarch64 with cross"
(
cd $PACKAGE
cross build --release --target $TARGET_ARCH
)
fi

# build other packages with cargo directly
# build all other packages with cargo directly instead
if [[ "$TARGET_ARCH" == "aarch64-unknown-linux-gnu" ]]; then
if [ ! -d $AARCH64_OPENSSL_PATH ]; then
echo "Error: Cross-compiled OpenSSL libraries not found at $X86_OPENSSL_PATH"
Expand Down

0 comments on commit e019f4f

Please sign in to comment.