don't use -DNDEBUG with AWS DK setups

This commit is contained in:
Tim Snyder 2022-03-19 15:59:47 +00:00
parent b2f1c3f994
commit 0b9f1ab618
1 changed files with 17 additions and 7 deletions

View File

@ -215,6 +215,15 @@ if wget -T 1 -t 3 -O /dev/null http://169.254.169.254/; then
#cd $RDIR
#./scripts/install-nbd-kmod.sh
(
if [[ "${CPPFLAGS:-zzz}" != "zzz" ]]; then
# don't set it if it isn't already set but strip out -DNDEBUG because
# the sdk software has assertion-only variable usage that will end up erroring
# under NDEBUG with -Wall and -Werror
export CPPFLAGS="${CPPFLAGS/-DNDEBUG/}"
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
@ -222,6 +231,7 @@ if wget -T 1 -t 3 -O /dev/null http://169.254.169.254/; then
cd $AWSFPGA
bash -c "source ./sdk_setup.sh"
bash -c "source ./hdk_setup.sh"
)
fi
# Per-repository dependencies are installed under this sysroot