Commit 5005eea8 authored by bmeurer's avatar bmeurer Committed by Commit Bot

[tools] Properly handle different GOMA_DIR in gm.py.

R=jarin@chromium.org, jkummerow@chromium.org

Review-Url: https://codereview.chromium.org/2923983002
Cr-Commit-Position: refs/heads/master@{#45753}
parent 84a54c5c
...@@ -87,6 +87,8 @@ def DetectGoma(): ...@@ -87,6 +87,8 @@ def DetectGoma():
home_goma = os.path.expanduser("~/goma") home_goma = os.path.expanduser("~/goma")
if os.path.exists(home_goma): if os.path.exists(home_goma):
return home_goma return home_goma
if os.environ.get("GOMA_DIR"):
return os.environ.get("GOMA_DIR")
if os.environ.get("GOMADIR"): if os.environ.get("GOMADIR"):
return os.environ.get("GOMADIR") return os.environ.get("GOMADIR")
return None return None
...@@ -102,11 +104,12 @@ is_component_build = false ...@@ -102,11 +104,12 @@ is_component_build = false
is_debug = false is_debug = false
%s %s
use_goma = {GOMA} use_goma = {GOMA}
goma_dir = \"{GOMA_DIR}\"
v8_enable_backtrace = true v8_enable_backtrace = true
v8_enable_disassembler = true v8_enable_disassembler = true
v8_enable_object_print = true v8_enable_object_print = true
v8_enable_verify_heap = true v8_enable_verify_heap = true
""".replace("{GOMA}", USE_GOMA) """.replace("{GOMA}", USE_GOMA).replace("{GOMA_DIR}", GOMADIR)
DEBUG_ARGS_TEMPLATE = """\ DEBUG_ARGS_TEMPLATE = """\
is_component_build = true is_component_build = true
...@@ -114,10 +117,11 @@ is_debug = true ...@@ -114,10 +117,11 @@ is_debug = true
symbol_level = 2 symbol_level = 2
%s %s
use_goma = {GOMA} use_goma = {GOMA}
goma_dir = \"{GOMA_DIR}\"
v8_enable_backtrace = true v8_enable_backtrace = true
v8_enable_slow_dchecks = true v8_enable_slow_dchecks = true
v8_optimized_debug = false v8_optimized_debug = false
""".replace("{GOMA}", USE_GOMA) """.replace("{GOMA}", USE_GOMA).replace("{GOMA_DIR}", GOMADIR)
OPTDEBUG_ARGS_TEMPLATE = """\ OPTDEBUG_ARGS_TEMPLATE = """\
is_component_build = true is_component_build = true
...@@ -125,10 +129,11 @@ is_debug = true ...@@ -125,10 +129,11 @@ is_debug = true
symbol_level = 1 symbol_level = 1
%s %s
use_goma = {GOMA} use_goma = {GOMA}
goma_dir = \"{GOMA_DIR}\"
v8_enable_backtrace = true v8_enable_backtrace = true
v8_enable_verify_heap = true v8_enable_verify_heap = true
v8_optimized_debug = true v8_optimized_debug = true
""".replace("{GOMA}", USE_GOMA) """.replace("{GOMA}", USE_GOMA).replace("{GOMA_DIR}", GOMADIR)
ARGS_TEMPLATES = { ARGS_TEMPLATES = {
"release": RELEASE_ARGS_TEMPLATE, "release": RELEASE_ARGS_TEMPLATE,
......
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