mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 04:07:36 -04:00
Allow to pass custom location for the Boost library for Spike (#2082)
This commit is contained in:
parent
3919e79f8f
commit
0c2108845a
1 changed files with 5 additions and 1 deletions
|
@ -41,8 +41,12 @@ if ! [ -f "$SPIKE_INSTALL_DIR/bin/spike" ]; then
|
|||
# Build and install Spike (including extensions).
|
||||
mkdir -p build
|
||||
cd build
|
||||
WITH_BOOST=""
|
||||
if [[ ! -z "$BOOST_INSTALL_DIR" ]]; then
|
||||
WITH_BOOST="--with-boost=${BOOST_INSTALL_DIR}"
|
||||
fi
|
||||
if [[ ! -f config.log ]]; then
|
||||
../configure --prefix="$SPIKE_INSTALL_DIR"
|
||||
../configure --prefix="$SPIKE_INSTALL_DIR" ${WITH_BOOST}
|
||||
fi
|
||||
make -j${NUM_JOBS}
|
||||
echo "Installing Spike in '$SPIKE_INSTALL_DIR'..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue