diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-01 11:30:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-01 11:30:49 +0200 |
commit | 8c4614233ee448f842e195cd41abd900b235dc3d (patch) | |
tree | af9ef0b18a88b671245694b5e89fbfc13a1da714 /libbuild2/cc | |
parent | bc254a9a76db00e880ef526e55406f3291d92d52 (diff) |
Add additional diagnostics for unassigned path (GitHub issue #89)
Diffstat (limited to 'libbuild2/cc')
-rw-r--r-- | libbuild2/cc/compile-rule.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index 559db15..435858b 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -917,12 +917,14 @@ namespace build2 { const path& p (src.path ()); - // We seem to have a race condition here but can't quite put our - // finger on it. + // @@ TMP: we seem to have a race condition here but can't quite put + // our finger on it. // // NOTE: remember to get rid of src_ts*, etc., once done. // - // assert (!p.empty ()); // Sanity check. +#if 0 + assert (!p.empty ()); // Sanity check. +#else if (p.empty ()) { target_state src_ts3 (src.matched_state (a, false)); @@ -933,11 +935,13 @@ namespace build2 info << "target state 2: " << src_ts2 << info << "target state 3: " << src_ts3 << info << "target count 1: " << src_tc1 << - info << "target count 2: " << src_tc2; + info << "target count 2: " << src_tc2 << + info << "please report at " + << "https://github.com/build2/build2/issues/89"; - assert (false); + assert (!p.empty ()); } - +#endif if (dd.expect (p) != nullptr) l4 ([&]{trace << "source file mismatch forcing update of " << t;}); } |