Use nproc and sysctl -n hw.cpu for default initializing CORES

This avoids having to pass --build-arg CORES=n when building the
docker images.
This commit is contained in:
Martin Storsjö committed 2018-11-09 22:20:34 +02:00
1 parent e0f186967a
commit 99e2fefc9d
9 files changed
+13 -7

No files matched your search

-2
View File
@@ -13,8 +13,6 @@ RUN git config --global user.name "LLVM MinGW" && \
WORKDIR /build
ARG CORES=4
ENV TOOLCHAIN_PREFIX=/opt/llvm-mingw
# Build and strip the LLVM installation