You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
471 B
17 lines
471 B
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
rm -rf build
|
|
|
|
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 -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
|
|
make check
|
|
make install install-hdrs-list.h
|
|
|
|
# check that help message prints without error
|
|
install/bin/spike -h
|
|
|