diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-02-01 16:34:00 -0800 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-02-01 16:34:00 -0800 |
commit | 00a2e84b38745f0cdc37746e4d1b58b6487e774e (patch) | |
tree | 2c339ab317769ac519f6554de679c4838aea0ab9 /do_autogen.sh | |
parent | 91073a6ab4062f9aa486f1948a7155a0684454da (diff) | |
download | ceph-00a2e84b38745f0cdc37746e4d1b58b6487e774e.tar.gz |
do_autogen.sh: -e <path> to dump encoded objects to a path
Make it easy to build with encode dumping enabled. This is just a
convenient way to generate a large corpus of encoded objects.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'do_autogen.sh')
-rwxr-xr-x | do_autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/do_autogen.sh b/do_autogen.sh index 18f1169890e..130df872d13 100755 --- a/do_autogen.sh +++ b/do_autogen.sh @@ -10,6 +10,8 @@ do_autogen.sh: make a ceph build by running autogen, etc. level 1: -g level 3: -Wextra level 4: even more... +-H --with-hadoop +-e <path> dump encoded objects to <path> -P profiling build EOF @@ -24,7 +26,7 @@ debug_level=0 verbose=0 profile=0 HADOOP_FLAGS= -while getopts "d:hHPv" flag +while getopts "d:e:hHPv" flag do case $flag in d) debug_level=$OPTARG;; @@ -38,6 +40,8 @@ do v) verbose=1;; + e) encode_dump=$OPTARG;; + *) echo usage @@ -80,6 +84,11 @@ if [ "${debug_level}" -ge 2000 ]; then CXXFLAGS="${CXXFLAGS} -Wold-style-cast" fi +if [ -n "${encode_dump}" ]; then + CXXFLAGS="${CXXFLAGS} -DENCODE_DUMP=${encode_dump}" +fi + + # Warning about unused parameters just leads to a lot of pointless spew when # using C++. It doesn't interact well with class inheritance. CFLAGS="${CFLAGS} -Wno-unused-parameter" |