diff --git a/Dockerfile b/Dockerfile index 086e62b..2ccd3fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,13 @@ 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 @@ -17,8 +22,7 @@ RUN apt-get update -q && apt-get install -y cmake ninja-build build-essential py && 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 \