xref: /aosp_15_r20/external/cronet/build/config/pch.gni (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Worker# Copyright 2016 The Chromium Authors
2*6777b538SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
3*6777b538SAndroid Build Coastguard Worker# found in the LICENSE file.
4*6777b538SAndroid Build Coastguard Worker
5*6777b538SAndroid Build Coastguard Workerimport("//build/toolchain/rbe.gni")
6*6777b538SAndroid Build Coastguard Workerimport("//build/toolchain/siso.gni")
7*6777b538SAndroid Build Coastguard Worker
8*6777b538SAndroid Build Coastguard Workerdeclare_args() {
9*6777b538SAndroid Build Coastguard Worker  # Precompiled header file support is by default available,
10*6777b538SAndroid Build Coastguard Worker  # but for distributed build system uses (like rbe, or siso) or when
11*6777b538SAndroid Build Coastguard Worker  # doing official builds it is off by default.
12*6777b538SAndroid Build Coastguard Worker  # On Linux it slows down the build, so don't enable it by default.
13*6777b538SAndroid Build Coastguard Worker  enable_precompiled_headers =
14*6777b538SAndroid Build Coastguard Worker      !is_official_build && !(use_remoteexec || use_siso) && !is_linux
15*6777b538SAndroid Build Coastguard Worker}
16