don't use -DNDEBUG with AWS DK setups
This commit is contained in:
parent
b2f1c3f994
commit
0b9f1ab618
|
@ -215,13 +215,23 @@ if wget -T 1 -t 3 -O /dev/null http://169.254.169.254/; then
|
||||||
#cd $RDIR
|
#cd $RDIR
|
||||||
#./scripts/install-nbd-kmod.sh
|
#./scripts/install-nbd-kmod.sh
|
||||||
|
|
||||||
# Source {sdk,hdk}_setup.sh once on this machine to build aws libraries and
|
(
|
||||||
# pull down some IP, so we don't have to waste time doing it each time on
|
if [[ "${CPPFLAGS:-zzz}" != "zzz" ]]; then
|
||||||
# worker instances
|
# don't set it if it isn't already set but strip out -DNDEBUG because
|
||||||
AWSFPGA=$RDIR/platforms/f1/aws-fpga
|
# the sdk software has assertion-only variable usage that will end up erroring
|
||||||
cd $AWSFPGA
|
# under NDEBUG with -Wall and -Werror
|
||||||
bash -c "source ./sdk_setup.sh"
|
export CPPFLAGS="${CPPFLAGS/-DNDEBUG/}"
|
||||||
bash -c "source ./hdk_setup.sh"
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Source {sdk,hdk}_setup.sh once on this machine to build aws libraries and
|
||||||
|
# pull down some IP, so we don't have to waste time doing it each time on
|
||||||
|
# worker instances
|
||||||
|
AWSFPGA=$RDIR/platforms/f1/aws-fpga
|
||||||
|
cd $AWSFPGA
|
||||||
|
bash -c "source ./sdk_setup.sh"
|
||||||
|
bash -c "source ./hdk_setup.sh"
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Per-repository dependencies are installed under this sysroot
|
# Per-repository dependencies are installed under this sysroot
|
||||||
|
|
Loading…
Reference in New Issue