Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Nov 16, 2023
1 parent bf0e263 commit 2d3d871
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ ARG TARGETS=X86

FROM ubuntu:22.04 AS builder

ARG UBUNTU_VERSION
ARG LLVM_URL
ARG LLVM_VERSION
ARG LLVM_COMMIT
ARG BUILD_TYPE
ARG PROJECTS
ARG TARGETS

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update -q && apt-get install -y cmake ninja-build build-essential python3 python3-distutils git unzip gcc g++ \
&& apt-get autoremove -y --purge \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

RUN if [ -z "$var" ]; then git clone --branch release/$LLVM_VERSION.x --single-branch --depth 1 $LLVM_PROJECT /tmp/llvm-project/; else; git clone $LLVM_PROJECT /tmp/llvm-project/ && cd /tmp/llvm-project && git checkout $LLVM_COMIIT; fi
RUN if [ -z "$LLVM_COMMIT" ]; then echo "branch" && git clone --branch release/$LLVM_VERSION.x --single-branch --depth 1 $LLVM_URL /tmp/llvm-project; else echo "commit" && git clone $LLVM_URL /tmp/llvm-project && cd /tmp/llvm-project && git checkout $LLVM_COMMIT; fi

RUN mkdir /tmp/llvm-project/build && mkdir /tmp/llvm && cd /tmp/llvm-project/build \
&& cmake -G Ninja ../llvm -Wno-dev \
Expand Down

0 comments on commit 2d3d871

Please sign in to comment.