From fcbe10739bb29d3fb57e0a5d5adc37548b1e9c82 Mon Sep 17 00:00:00 2001 From: machenbach Date: Mon, 9 Mar 2015 10:22:20 -0700 Subject: [PATCH] Fix full rebuilding after clang rolls. BUG=chromium:464657 LOG=n TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/990253002 Cr-Commit-Position: refs/heads/master@{#27082} --- build/standalone.gypi | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/build/standalone.gypi b/build/standalone.gypi index 1aedbcd595..95ffb998d9 100644 --- a/build/standalone.gypi +++ b/build/standalone.gypi @@ -193,6 +193,16 @@ # Xcode insists on this empty entry. }, }, + 'conditions':[ + ['(clang==1 or host_clang==1) and OS!="win"', { + # This is here so that all files get recompiled after a clang roll and + # when turning clang on or off. + # (defines are passed via the command line, and build systems rebuild + # things when their commandline changes). Nothing should ever read this + # define. + 'defines': ['CR_CLANG_REVISION=