diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-04-13 13:25:05 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2017-04-26 07:45:11 +0000 |
commit | 56b2aa3dfa8fa6c5f457bb5a28e88c4ef8d7f58f (patch) | |
tree | cee375ae14c8f707371b85a8199d88ddf23fce8d /bootstrap.sh | |
parent | 65e21628ea5a367edd41783ba5ba7f069824000b (diff) | |
download | phosphor-mboxd-56b2aa3dfa8fa6c5f457bb5a28e88c4ef8d7f58f.tar.gz phosphor-mboxd-56b2aa3dfa8fa6c5f457bb5a28e88c4ef8d7f58f.zip |
bootstrap: Add 'dev' parameter to run ./configure with additional CFLAGS
Also, add -DDEBUG as CODE_COVERAGE_CPPFLAGS has -DNDEBUG, and we set
the coverage flags globally. Maybe that's not a good idea, but we
definitely want to trigger asserts in the test cases.
Change-Id: Ied39252678f1b28284024cd4435996416bd3eb22
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I9255e7300b783e536a687af6d7efdb54d41a86b1
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index f1be536..9daba3b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -16,4 +16,15 @@ case $1 in esac autoreconf -i -echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' + +case $1 in + dev) + ./configure \ + CPPFLAGS="-UNDEBUG" \ + CFLAGS="-fsanitize=address -fsanitize=leak -fsanitize=undefined -Wall -Werror" \ + --enable-code-coverage + ;; + *) + echo 'Run "./configure ${CONFIGURE_FLAGS} && make"' + ;; +esac |