diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-05-29 16:42:14 +0930 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-05-31 13:05:47 +0000 |
commit | bcefd4035daa99dc5e7a6e16788ac10a7b1c97eb (patch) | |
tree | a0462155b29cd749cba7061fc210aebd83e03135 /bootstrap.sh | |
parent | 58b3cc075d61c5dc10d52a142db907689b8beb80 (diff) | |
download | phosphor-mboxd-bcefd4035daa99dc5e7a6e16788ac10a7b1c97eb.tar.gz phosphor-mboxd-bcefd4035daa99dc5e7a6e16788ac10a7b1c97eb.zip |
bootstrap: Set CXXFLAGS as well as CFLAGS in dev mode
Change-Id: I2fe0974182c2f207232b8e9b1f2d0acb7b57512c
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index d6c337a..a3a3932 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -28,9 +28,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 \ "$@" ;; |