xref: /aosp_15_r20/external/angle/build/config/pch.gni (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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/cc_wrapper.gni")
6import("//build/toolchain/rbe.gni")
7import("//build/toolchain/siso.gni")
8
9declare_args() {
10  # Precompiled header file support is by default available, except on the
11  # following scenarios:
12  # - Remote executions or when doing official builds.
13  # - When using cc_wrapper because ccache requires a particular configuration
14  #   and some compiler options currently not used by Chromium:
15  #   https://ccache.dev/manual/latest.html#_precompiled_headers and it isn't
16  #   supported by sccache: https://github.com/mozilla/sccache/issues/978.
17  # - On Linux it slows down the build.
18  enable_precompiled_headers =
19      !is_official_build && !use_remoteexec && cc_wrapper == "" && !is_linux
20}
21