Skip to content

Commit c1210c7

Browse files
committed
dockerfile: Do a PGO build in Dockerfile.cross
1 parent 51314df commit c1210c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile.cross

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ RUN if [ -n "$WITH_PYTHON" ]; then \
3939

4040
ARG FULL_LLVM
4141

42+
COPY profile.profdata ./
43+
4244
COPY build-llvm.sh .
4345
RUN if [ -n "$WITH_PYTHON" ]; then ARG="--with-python"; fi && \
44-
./build-llvm.sh $CROSS_TOOLCHAIN_PREFIX --host=$HOST $ARG
46+
./build-llvm.sh $CROSS_TOOLCHAIN_PREFIX --host=$HOST $ARG --thinlto --pgo
4547

4648
COPY build-lldb-mi.sh .
4749
RUN ./build-lldb-mi.sh $CROSS_TOOLCHAIN_PREFIX --host=$HOST

0 commit comments

Comments
 (0)