Skip to content

Commit

Permalink
build_helper: Add command-line flag to set jemalloc variable
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayknarayan committed May 16, 2019
1 parent 759eab9 commit aa91085
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,22 @@ cat 1>&2 <<EOF
Usage ${0##*/} [-h|?] [-p PATH] [-i INSTALL_PREFIX]
-p BUILD_DIR (optional): Path of the base dir for mvfst
-i INSTALL_PREFIX (optional): install prefix path
-m (optional): Build folly without jemalloc
-h|? Show this help message
EOF
}

while getopts ":hp:i:" arg; do
while getopts ":hp:i:m" arg; do
case $arg in
p)
BUILD_DIR="${OPTARG}"
;;
i)
INSTALL_PREFIX="${OPTARG}"
;;
m)
MVFST_FOLLY_USE_JEMALLOC="n"
;;
h | *) # Display help.
usage
exit 0
Expand Down

0 comments on commit aa91085

Please sign in to comment.