From 3425432752d362341b8e39cd319d7f3c56aef169 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Jul 2016 16:44:34 +0200 Subject: Incorporate target to link rule's depdb Since there is no guarantee that the target is part of the linker's checksum. --- build2/cxx/compile.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build2/cxx/compile.cxx') 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 (rs["cxx.checksum"])) != nullptr) l4 ([&]{trace << "compiler mismatch forcing update of " << t;}); -- cgit v1.1