Skip to content

Commit 51314df

Browse files
committed
WIP: dockerfile: Add a dockerfile for doing the PGO build step
1 parent 88182e5 commit 51314df

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Dockerfile.pgo

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ARG BASE=mstorsjo/llvm-mingw:dev
2+
FROM $BASE
3+
4+
COPY profile.profdata ./
5+
6+
COPY build-llvm.sh build-lldb-mi.sh strip-llvm.sh ./
7+
RUN export PATH=$TOOLCHAIN_PREFIX/bin:$PATH && \
8+
cp -a $TOOLCHAIN_PREFIX /opt/llvm-mingw-pgo && \
9+
./build-llvm.sh /opt/llvm-mingw-pgo --with-clang --thinlto --pgo && \
10+
./build-lldb-mi.sh /opt/llvm-mingw-pgo && \
11+
./strip-llvm.sh /opt/llvm-mingw-pgo

0 commit comments

Comments
 (0)