Skip to content

Commit 88182e5

Browse files
committed
dockerfile: Add a new dockerfile for doing profiling
This goes on top of the regular Dockerfile or Dockerfile.dev.
1 parent 94127cb commit 88182e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Dockerfile.profile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ARG BASE=mstorsjo/llvm-mingw:dev
2+
FROM $BASE
3+
4+
COPY build-compiler-rt.sh build-llvm.sh ./
5+
RUN ./build-compiler-rt.sh --native $TOOLCHAIN_PREFIX
6+
7+
RUN export PATH=$TOOLCHAIN_PREFIX/bin:$PATH && \
8+
./build-llvm.sh /tmp/dummy-prefix --disable-lldb --disable-clang-tools-extra --with-clang --disable-dylib --instrumented
9+
10+
COPY pgo-training.sh pgo-training.make ./
11+
COPY test/ ./test/
12+
RUN ./pgo-training.sh llvm-project/llvm/build-instrumented $TOOLCHAIN_PREFIX

0 commit comments

Comments
 (0)