summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-23 20:21:37 -0800
committerLei Zhang <thestig@chromium.org>2015-12-23 20:21:37 -0800
commit028aab6e6841e2bb1db319ff82e7ac730dd9e1c1 (patch)
tree804fed6bd25a6c9468e1ae53a5f9b9f49d4f3061
parent092a6220d20e823e500bdc4211aa618fde1b1996 (diff)
downloadpdfium-028aab6e6841e2bb1db319ff82e7ac730dd9e1c1.tar.xz
Merge to XFA: Set CR_CLANG_REVISION to force a rebuild when the Clang version changes.
BUG=pdfium:335 TBR=thakis@chromium.org Review URL: https://codereview.chromium.org/1549863002 . (cherry picked from commit da0a931ca1ff3ebc64138491a703e7df47650bb9) Review URL: https://codereview.chromium.org/1549033002 .
-rw-r--r--build/standalone.gypi8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 71b207e912..9f4a35f6df 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -328,6 +328,14 @@
'V8_USE_EXTERNAL_STARTUP_DATA',
],
}], # v8_use_external_startup_data==1
+ ['clang==1 or host_clang==1', {
+ # 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=<!(python <(DEPTH)/tools/clang/scripts/update.py --print-revision)'],
+ }],
],
},
'xcode_settings': {