1# Copyright 2013 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# Defines the configuration of Goma. 6 7declare_args() { 8 # Set to true to enable distributed compilation using Goma. 9 use_goma = false 10 11 # This flag is for ChromeOS compiler wrapper. 12 # By passing gomacc path via cmd-line arg, ChromeOS' compiler wrapper 13 # invokes gomacc inside it. 14 needs_gomacc_path_arg = false 15 16 # Absolute directory containing the gomacc binary. 17 goma_dir = "" 18} 19 20if (use_goma && goma_dir == "") { 21 goma_dir = exec_script("get_goma_dir.py", [], "string") 22} 23 24declare_args() { 25 # TODO(crbug.com/726475): true if use_goma = true in the future. 26 use_java_goma = false 27} 28 29assert(!is_win || !use_goma || is_clang, 30 "cl.exe does not work on goma, use clang") 31