diff options
author | Tim Newsome <tim@sifive.com> | 2023-01-05 17:33:52 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2023-01-11 13:19:24 -0800 |
commit | 5e1bdfc496cefd199edfe5635b053a6216c66d24 (patch) | |
tree | dae94410491b58e321d2be2a031f98499c70fcbe | |
parent | 582f4d442ec660affea0d378fad3f8588a7dec16 (diff) | |
download | riscv-isa-sim-5e1bdfc496cefd199edfe5635b053a6216c66d24.zip riscv-isa-sim-5e1bdfc496cefd199edfe5635b053a6216c66d24.tar.gz riscv-isa-sim-5e1bdfc496cefd199edfe5635b053a6216c66d24.tar.bz2 |
Use nproc or hw.ncpu instead of -j4 to build spike.
-rwxr-xr-x | ci-tests/build-spike | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci-tests/build-spike b/ci-tests/build-spike index 10806c4..5eb7b58 100755 --- a/ci-tests/build-spike +++ b/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 |