Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4331)

Unified Diff: build/toolchain/ccache.gni

Issue 742953007: add ccache support to gn builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add ccache usage tips Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/toolchain/ccache.gni
diff --git a/build/toolchain/ccache.gni b/build/toolchain/ccache.gni
new file mode 100644
index 0000000000000000000000000000000000000000..2a36275dd46b76271dcc6c9110ae342119a9c431
--- /dev/null
+++ b/build/toolchain/ccache.gni
@@ -0,0 +1,22 @@
+# Copyright (c) 2014 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.
+
+# Defines the configuration of ccache.
brettw 2014/11/26 21:18:14 Can you mention here what ccache is?
Mostyn Bramley-Moore 2014/11/26 22:09:52 Done.
+#
+# TIPS:
+#
+# Set clang_use_chrome_plugins=false since ccache doesn't know how to handle
+# clang plugins.
Nico 2014/11/26 17:01:06 Is there a bug filed with ccache for this?
Mostyn Bramley-Moore 2014/11/26 22:09:52 ccache 3.1.10 onwards supports the -Xclang flag: h
Mostyn Bramley-Moore 2014/11/26 22:23:24 (Turns out I didn't remove the new ccache from my
+#
+# Use ccache 3.2 or later to avoid clang unused argument warnings:
+# https://bugzilla.samba.org/show_bug.cgi?id=8118
+#
+# To avoid -Wparentheses-equality clang warnings, at some cost in terms of
+# speed, you can do:
+# export CCACHE_CPP2=yes
+
+declare_args() {
+ # Set to true to enable ccache. Probably doesn't work on windows.
+ use_ccache = false
+}

Powered by Google App Engine
This is Rietveld 408576698