Browse Source

Use nproc or hw.ncpu instead of -j4 to build spike.

pull/1212/head
Tim Newsome 4 years ago
committed by Andrew Waterman
parent
commit
5e1bdfc496
  1. 2
      ci-tests/build-spike

2
ci-tests/build-spike

@ -7,7 +7,7 @@ mkdir build
cd build
mkdir install
CXXFLAGS="-Wnon-virtual-dtor" CFLAGS="-Werror -Wignored-qualifiers -Wunused-function -Wunused-parameter -Wunused-variable" $DIR/../configure --prefix=`pwd`/install
make -j4
make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
make install
# check that help message prints without error

Loading…
Cancel
Save