Created
May 9, 2020 08:58
-
-
Save florianbehrens/84df8d916e87afd8856d52e37d5c16a6 to your computer and use it in GitHub Desktop.
Compiler Performance Benchmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
ENV SOURCE=llvm-10.0.0.src.tar.xz | |
WORKDIR /tmp | |
RUN apt-get -y update; apt-get install -y wget tar xz-utils | |
RUN wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/${SOURCE} | |
RUN tar -xJf ${SOURCE} | |
RUN apt-get install -y build-essential cmake python3 | |
WORKDIR /tmp/build | |
RUN cmake ../${SOURCE%.tar.xz} | |
RUN apt-get install time | |
CMD time make -j$(nproc) llvm-lto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First create Docker container:
Then, run created container: