Skip to content

Commit

Permalink
Try to fix issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 8, 2024
1 parent cd732a3 commit d5a8099
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/lychee/compile-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ cargo fetch --target="${EARCH}-unknown-linux-musl" --locked

# Different build settings for aarch64 vs x86_64.
# The `mold` linker is MUCH faster than `ld` or `lld`.
case "${ARCH}" in
"arm64") mold -run cargo auditable build --timings --frozen --release --jobs 1 ;; # Slower, but scales better.
"amd64") mold -run cargo auditable build --timings --frozen --release ;;
*) echo "Unknown architecture: ${ARCH}" && exit 1 ;;
esac
if [[ "${ARCH}" == "arm64" ]]; then
mold -run cargo auditable build --timings --frozen --release --jobs 1 # Slower, but scales better.
elif [[ "${ARCH}" == "amd64" ]]; then
mold -run cargo auditable build --timings --frozen --release
fi

# The final binary must always end up at `${WORKSPACE_DIR}/builds/usr/bin/{package}_musl_{arch}` so that
# it gets picked up by the build process correctly.
Expand Down

0 comments on commit d5a8099

Please sign in to comment.