aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/compile.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-22 16:44:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-22 16:44:34 +0200
commit3425432752d362341b8e39cd319d7f3c56aef169 (patch)
treeac8176087581f355258b6c56f6475ee0d9e46eb5 /build2/cxx/compile.cxx
parent77869a0567f4c2e029c679525b29da53433d8d9f (diff)
Incorporate target to link rule's depdb
Since there is no guarantee that the target is part of the linker's checksum.
Diffstat (limited to 'build2/cxx/compile.cxx')
-rw-r--r--build2/cxx/compile.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx
index 300fad7..5205fdf 100644
--- a/build2/cxx/compile.cxx
+++ b/build2/cxx/compile.cxx
@@ -210,7 +210,9 @@ namespace build2
if (dd.expect ("cxx.compile 1") != nullptr)
l4 ([&]{trace << "rule mismatch forcing update of " << t;});
- // Then the compiler checksum.
+ // Then the compiler checksum. Note that here we assume it
+ // incorporates the (default) target so that if the compiler changes
+ // but only in what it targets, then the checksum will still change.
//
if (dd.expect (cast<string> (rs["cxx.checksum"])) != nullptr)
l4 ([&]{trace << "compiler mismatch forcing update of " << t;});