make sure to rebuild compilers if they changed (#1504)

This commit is contained in:
Illia Silin
2024-09-12 07:49:55 -07:00
committed by GitHub
parent 448c0f56d8
commit e07f1108c0
2 changed files with 4 additions and 2 deletions

View File

@@ -130,6 +130,8 @@ ENV compiler_commit=$compiler_commit
RUN sh -c "echo compiler version = '$compiler_version'"
RUN sh -c "echo compiler commit = '$compiler_commit'"
ARG DISABLE_CACHE=0
RUN if ( [ "$compiler_version" = "amd-staging" ] || [ "$compiler_version" = "amd-mainline-open" ] ) && [ "$compiler_commit" = "" ]; then \
git clone -b "$compiler_version" https://github.com/ROCm/llvm-project.git && \
cd llvm-project && mkdir build && cd build && \