File tree Expand file tree Collapse file tree
build_automation/gpdb/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
118122if [ " ${ENABLE_DEBUG:- false} " = " true" ]; then
119123 CONFIGURE_DEBUG_OPTS=" --enable-debug \
120- --enable-profiling \
121124 --enable-cassert \
122125 --enable-debug-extensions"
123126fi
124127
128+ CONFIGURE_PROFILING_OPTS=" "
129+ if [ " ${ENABLE_PROFILING:- false} " = " true" ]; then
130+ CONFIGURE_PROFILING_OPTS=" --enable-profiling"
131+ fi
132+
125133# Configure build
126134log_section " Configure"
127135execute_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 \
You can’t perform that action at this time.
0 commit comments