Skip to content

Commit

Permalink
docker, runtime: only build clang and llc targets
Browse files Browse the repository at this point in the history
Specify only the targets we need from the llvm build, namely `clang` and
`llc`. This reduces the amount of objects to build by ~300 and thus
also reduces build time a bit.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser committed Apr 14, 2020
1 parent fcc5b2b commit 197e4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/packaging/docker/Dockerfile.runtime
Expand Up @@ -58,7 +58,7 @@ cd llvm/ && \
git checkout -b d941df363d1cb621a3836b909c37d79f2a3e27e2 d941df363d1cb621a3836b909c37d79f2a3e27e2 && \
cd llvm/build && \
cmake .. -G "Ninja" -DLLVM_TARGETS_TO_BUILD="BPF" -DLLVM_ENABLE_PROJECTS="clang" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_RUNTIME=OFF && \
ninja && \
ninja clang llc && \
strip bin/clang && \
strip bin/llc && \
cp bin/clang /usr/bin/clang && \
Expand Down

0 comments on commit 197e4cb

Please sign in to comment.