aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/guess
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/guess
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/guess')
-rw-r--r--build2/cxx/guess5
1 files changed, 5 insertions, 0 deletions
diff --git a/build2/cxx/guess b/build2/cxx/guess
index 0588523..63858ad 100644
--- a/build2/cxx/guess
+++ b/build2/cxx/guess
@@ -86,6 +86,11 @@ namespace build2
// common cases, such as an upgrade to a new version or a configuration
// change.
//
+ // Note that we assume the checksum incorporates the (default) target so
+ // that if the compiler changes but only in what it targets, then the
+ // checksum will still change. This is currently the case for all the
+ // compilers that we support.
+ //
// The target is the compiler's traget architecture triplet. Note that
// unlike all the preceding fields, this one takes into account the
// compile options (e.g., -m32).