Chromium Code Reviews| Index: build/config/pch.gni |
| diff --git a/build/config/pch.gni b/build/config/pch.gni |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..178fc771acb629310184b6928ce55e28fea848a8 |
| --- /dev/null |
| +++ b/build/config/pch.gni |
| @@ -0,0 +1,16 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# 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") |
| + |
| +declare_args() { |
| + # Precompiled header file support is by default available, |
| + # but for distributed build system uses (like goma) or when |
| + # doing official builds. |
| + if (is_official_build || use_goma) { |
| + enable_precompiled_headers = false |
| + } else { |
| + enable_precompiled_headers = true |
|
Nico
2016/11/21 23:03:41
enable_precompiled_headers = !is_official_build &&
sof
2016/11/22 06:34:43
switched to expression form.
|
| + } |
| +} |