Commit 3eadf8a6 authored by viettrungluu's avatar viettrungluu Committed by Commit bot

Mojo: mojob.sh: Make --release (etc.) work properly again.

R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/663023006

Cr-Commit-Position: refs/heads/master@{#300408}
parent 073d514d
......@@ -101,9 +101,20 @@ COMPILER=clang
GOMA=auto
make_gn_args() {
local args=()
# TODO(vtl): It's a bit of a hack to infer the build type from the output
# directory name, but it's what we have right now (since we support "debug and
# release" mode).
case "$1" in
Debug)
# (Default.)
;;
Release)
args+=("is_debug=false")
;;
esac
case "$COMPILER" in
clang)
args+=("is_clang=true")
# (Default.)
;;
gcc)
args+=("is_clang=false")
......@@ -116,11 +127,11 @@ make_gn_args() {
elif [ -d "${HOME}/goma" ]; then
args+=("use_goma=true" "goma_dir=\"${HOME}/goma\"")
else
args+=("use_goma=false")
: # (Default.)
fi
;;
disabled)
args+=("use_goma=false")
# (Default.)
;;
esac
echo "${args[*]}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment