You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/packager/binary/Dockerfile
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -57,20 +57,26 @@ RUN apt-get update -y \
57
57
rename \
58
58
wget
59
59
60
-
# Build and install tools for cross-linking to Darwin
61
-
62
60
ENV CC=clang-8
63
61
ENV CXX=clang++-8
64
62
65
63
# libtapi is required to support .tbh format from recent MacOS SDKs
66
64
RUN git clone https://github.com/tpoechtrager/apple-libtapi.git
67
65
RUN cd apple-libtapi && INSTALLPREFIX=/cctools ./build.sh && ./install.sh
68
66
67
+
# Build and install tools for cross-linking to Darwin
69
68
RUN git clone https://github.com/tpoechtrager/cctools-port.git
70
69
RUN cd cctools-port/cctools && ./configure --prefix=/cctools --with-libtapi=/cctools --target=x86_64-apple-darwin && make install
71
70
71
+
# Download toolchain for Darwin
72
+
RUN mkdir -p /build/cmake/toolchain/darwin-x86_64
72
73
RUN wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.14-beta4/MacOSX10.14.sdk.tar.xz
73
-
RUN tar xJf MacOSX10.14.sdk.tar.xz -C /cctools
74
+
RUN tar --strip-components=1 xJf MacOSX10.14.sdk.tar.xz -C /build/cmake/toolchain/darwin-x86_64
75
+
76
+
# Download toolchain for ARM
77
+
RUN mkdir -p /build/cmake/toolchain/linux-aarch64
78
+
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz?revision=2e88a73f-d233-4f96-b1f4-d8b36e9bb0b9&la=en -O gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
79
+
RUN tar --strip-components=1 xJf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz -C /build/cmake/toolchain/linux-aarch64
0 commit comments