xref: /aosp_15_r20/external/cronet/build/config/pch.gni (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2016 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
5import("//build/toolchain/rbe.gni")
6import("//build/toolchain/siso.gni")
7
8declare_args() {
9  # Precompiled header file support is by default available,
10  # but for distributed build system uses (like rbe, or siso) or when
11  # doing official builds it is off by default.
12  # On Linux it slows down the build, so don't enable it by default.
13  enable_precompiled_headers =
14      !is_official_build && !(use_remoteexec || use_siso) && !is_linux
15}
16