Skip to content

Commit

Permalink
ci: Fix alpine build of llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
aboeglin committed Jun 19, 2023
1 parent dbd431c commit 771e7fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/Dockerfile-x86_64-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ RUN git clone https://github.com/llvm/llvm-project.git --branch llvmorg-12.0.0
RUN cd llvm-project/llvm
RUN mkdir build
RUN cd build/

RUN ls -l ..
# The flag LLVM_ENABLE_PROJECTS is crucial, otherwise only llvm will be built, without clang or lld,
# and we need all three with the exact same version since C++ does not have a stable ABI.
RUN cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_PROJECTS="clang;lld" ..
RUN cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_ENABLE_PROJECTS="clang;lld" ../

RUN make -j1
RUN make install
Expand Down

0 comments on commit 771e7fc

Please sign in to comment.