Skip to content

Commit 15f5eab

Browse files
committed
fix(arm): add llvm-mingw headers
1 parent 257865a commit 15f5eab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN apt update &&\
1919
COPY --chmod=0755 scripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
2020
COPY --chmod=0755 scripts/install-llvm-mingw64.sh /tmp/install-llvm-mingw64.sh
2121
COPY --from=builder /tmp/llvm-mingw64 /tmp/llvm-mingw64
22-
RUN /tmp/install-llvm-mingw64.sh /tmp/llvm-mingw64
22+
RUN /tmp/install-llvm-mingw64.sh /tmp/llvm-mingw64 && rm -rf /tmp/*
2323
ENV PATH=/go/bin:$PATH \
2424
CGO_ENABLED=1 \
2525
GOOS=windows

scripts/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ arm64)
2121
export CC_FOR_TARGET=aarch64-w64-mingw32-gcc
2222
export CXX=aarch64-w64-mingw32-g++
2323
export CC=aarch64-w64-mingw32-gcc
24+
export CGO_FLAGS="$CGO_FLAGS -I/usr/generic-w64-mingw32/include"
2425
;;
2526
*)
2627
echo "Unsupported GOARCH variable value '$GOARCH'. Please set GOARCH environment variable to 'amd64', 'arm64' or '386'"

0 commit comments

Comments
 (0)