Skip to content

Commit

Permalink
Merge pull request #10 from gsoltis/symlink_mingw
Browse files Browse the repository at this point in the history
Fix llvm-mingw for amd64
  • Loading branch information
troian authored Sep 12, 2022
2 parents 6a6639d + 44367a9 commit 426c25a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ RUN \

# install a copy of mingw with aarch64 support to enable windows on arm64
WORKDIR /llvm-mingw
ARG TARGETARCH
RUN \
wget "https://github.com/mstorsjo/llvm-mingw/releases/download/20220906/llvm-mingw-20220906-ucrt-ubuntu-18.04-aarch64.tar.xz" && \
tar -xvf llvm-mingw-20220906-ucrt-ubuntu-18.04-aarch64.tar.xz
if [ ${TARGETARCH} = "arm64" ]; then MINGW_ARCH=aarch64; else MINGW_ARCH=x86_64; fi && \
wget "https://github.com/mstorsjo/llvm-mingw/releases/download/20220906/llvm-mingw-20220906-ucrt-ubuntu-18.04-${MINGW_ARCH}.tar.xz" && \
tar -xvf llvm-mingw-20220906-ucrt-ubuntu-18.04-${MINGW_ARCH}.tar.xz && \
ln -s llvm-mingw-20220906-ucrt-ubuntu-18.04-${MINGW_ARCH} llvm-mingw

FROM osx-cross-base AS osx-cross
ARG OSX_CROSS_COMMIT
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ manifest-create-base:
manifest-create:
@echo "creating manifest $(IMAGE_NAME)"
docker manifest create $(IMAGE_NAME) $(foreach arch,$(SUBIMAGES), --amend $(IMAGE_NAME)-$(arch))
@echo "creating base manifest $(IMAGE_NAME)-base"
docker manifest create $(IMAGE_NAME)-base $(foreach arch,$(SUBIMAGES), --amend $(IMAGE_NAME)-base-$(arch))

.PHONY: manifest-push-base
manifest-push-base:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ with a `PKG_CONFIG_SYSROOT_DIR` set to `/var/target` (same rule apply to `-L`)
| Linux | armhf (GOARM=6) | arm-linux-gnueabihf-gcc | arm-linux-gnueabihf-g++ | Verification required |
| Linux | armhf (GOARM=7) | arm-linux-gnueabihf-gcc | arm-linux-gnueabihf-g++ ||
| Windows | amd64 | x86_64-w64-mingw32-gcc | x86_64-w64-mingw32-g++ ||
| Windows | arm64 | /llvm-mingw/llvm-mingw-20220906-ucrt-ubuntu-18.04-aarch64/bin/aarch64-w64-mingw32-gcc | /llvm-mingw/llvm-mingw-20220906-ucrt-ubuntu-18.04-aarch64/bin/aarch64-w64-mingw32-g++ ||
| Windows | arm64 | /llvm-mingw/llvm-mingw/bin/aarch64-w64-mingw32-gcc | /llvm-mingw/llvm-mingw/bin/aarch64-w64-mingw32-g++ ||

## Docker

Expand Down

0 comments on commit 426c25a

Please sign in to comment.