Skip to content

Commit 7994a62

Browse files
authored
Move profiling to additional option (#31)
1 parent 8c4bbe0 commit 7994a62

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

build_automation/gpdb/scripts/configure-gpdb.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@
5757
#
5858
# When true, enables:
5959
# --enable-debug
60-
# --enable-profiling
6160
# --enable-cassert
6261
# --enable-debug-extensions
6362
#
63+
# ENABLE_PROFILING - Enable profiling options (default is false)
64+
#
65+
# When true, enables:
66+
# --enable-profiling
67+
#
6468
# CONFIGURE_EXTRA_OPTS - args to pass to configure
6569
#
6670
# Prerequisites:
@@ -117,11 +121,15 @@ CONFIGURE_DEBUG_OPTS=""
117121

118122
if [ "${ENABLE_DEBUG:-false}" = "true" ]; then
119123
CONFIGURE_DEBUG_OPTS="--enable-debug \
120-
--enable-profiling \
121124
--enable-cassert \
122125
--enable-debug-extensions"
123126
fi
124127

128+
CONFIGURE_PROFILING_OPTS=""
129+
if [ "${ENABLE_PROFILING:-false}" = "true" ]; then
130+
CONFIGURE_PROFILING_OPTS="--enable-profiling"
131+
fi
132+
125133
# Configure build
126134
log_section "Configure"
127135
execute_cmd ./configure --with-perl --with-python --with-libxml --enable-mapreduce --with-gssapi \
@@ -130,6 +138,7 @@ execute_cmd ./configure --with-perl --with-python --with-libxml --enable-mapredu
130138
--with-includes=${BUILD_DESTINATION}/include \
131139
--prefix=${BUILD_DESTINATION} \
132140
${CONFIGURE_DEBUG_OPTS} \
141+
${CONFIGURE_PROFILING_OPTS} \
133142
--with-ldap \
134143
--enable-gpperfmon \
135144
--with-pam \

0 commit comments

Comments
 (0)