Skip to content

Commit

Permalink
Write nproc override to /usr/local/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Mar 11, 2024
1 parent 85600e5 commit 02053dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/gcc.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ENV PARALLEL_BUILD="$PARALLEL_BUILD"
# replace nproc so it always says "1".
RUN echo "nproc = $(nproc)"
RUN echo "PARALLEL_BUILD = $PARALLEL_BUILD"
RUN if [[ "$PARALLEL_BUILD" == 0 ]]; then echo -e "#!/bin/sh\necho 1" > $(which nproc); fi
RUN if [[ "$PARALLEL_BUILD" == 0 ]]; then echo -e "#!/bin/sh\necho 1" > /usr/local/bin/nproc; chmod 755 /usr/local/bin/nproc; fi
RUN echo "which nproc = $(which nproc)"

RUN mkdir -p "$SRCDIR"
RUN mkdir -p "$BUILDDIR"
Expand Down

0 comments on commit 02053dd

Please sign in to comment.