summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-01-06 18:09:04 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-06 18:23:04 +0100
commit62532ad485698b70924c54a222890ebcb714dc39 (patch)
tree52255931bfea28c62361fb3ac94abee09b160ef4 /config
parenta4298f86f5a6cd4033af541103d0a33a241edeeb (diff)
do not set our clang timestamp to the timestamp of the clang binary
If the clang binary comes from a package which had been built before any of our clang related sources were changed the last time, the timestamp would be older and so there would be no rebuild. So do the stamp handling the usual way, clang upgrades will work fine, downgrades will not, but that's the same problem like with downgrading a library and its headers. To somewhat mitigate the problem (Clang plugin doesn't get cleaned by 'make clean'), include the full Clang version (which includes SVN revision) in config_clang.h and make all Clang plugin code include that, so at least configure re-run will trigger a rebuild if necessary. Change-Id: I993197f79e92e36105092c92c33b2e1db343e975
Diffstat (limited to 'config')
-rw-r--r--config/config_clang.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/config_clang.h.in b/config/config_clang.h.in
index 9d87e7a80b26..056d3e80832a 100644
--- a/config/config_clang.h.in
+++ b/config/config_clang.h.in
@@ -12,4 +12,8 @@ Settings related to Clang compiler plugins.
#undef SRCDIR
#undef WORKDIR
+/* This is actually unused, but it should change whenever Clang changes,
+thus causing update of this .h file and triggerring rebuild of our Clang plugin. */
+#undef CLANG_FULL_VERSION
+
#endif