Merge pull request #44854 from crazy-max/fix-arm64-build

Dockerfile: prefer ld for building against arm64
This commit is contained in:
Bjorn Neergaard 2023-01-19 13:22:52 -07:00 committed by GitHub
commit 0104f8f64a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -581,7 +581,7 @@ ARG PACKAGER_NAME
ENV PREFIX=/tmp
RUN <<EOT
# in bullseye arm64 target does not link with lld so configure it to use ld instead
if xx-info is-cross && [ "$(xx-info arch)" = "arm64" ]; then
if [ "$(xx-info arch)" = "arm64" ]; then
XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
fi
EOT