blob: fa33a28176ced9e15021fd4597b1371d9267e93a [file] [log] [blame]
# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/toolchain/goma.gni")
import("//build/toolchain/rbe.gni")
import("//build/toolchain/siso.gni")
declare_args() {
# Precompiled header file support is by default available,
# but for distributed build system uses (like goma, rbe, or siso) or when
# doing official builds it is off by default.
# On Linux it slows down the build, so don't enable it by default.
enable_precompiled_headers =
!is_official_build && !(use_goma || use_remoteexec || use_siso) &&
!is_linux
}