summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-05-29 16:42:14 +0930
committerAndrew Jeffery <andrew@aj.id.au>2017-05-29 17:09:19 +0930
commit385b46ea9c3159ed04fce0e9c6898bf7b59f5703 (patch)
tree77203d486e2ee069ae64c093cae33a93718896f4
parent57d608b4ff79c34c4cefa645f0b0e4434c90343f (diff)
downloadphosphor-mboxbridge-385b46ea9c3159ed04fce0e9c6898bf7b59f5703.tar.gz
phosphor-mboxbridge-385b46ea9c3159ed04fce0e9c6898bf7b59f5703.zip
bootstrap: Set CXXFLAGS as well as CFLAGS in dev mode
Change-Id: I2fe0974182c2f207232b8e9b1f2d0acb7b57512c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rwxr-xr-xbootstrap.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 5f3d494..90a6951 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -30,9 +30,11 @@ autoreconf -i
case "${BOOTSTRAP_MODE}" in
dev)
+ FLAGS="-fsanitize=address -fsanitize=leak -fsanitize=undefined -Wall -Werror"
./configure \
CPPFLAGS="-UNDEBUG" \
- CFLAGS="-fsanitize=address -fsanitize=leak -fsanitize=undefined -Wall -Werror" \
+ CFLAGS="${FLAGS}" \
+ CXXFLAGS="${FLAGS}" \
--enable-code-coverage \
"$@"
;;
OpenPOWER on IntegriCloud