aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-09 13:38:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-09 13:38:03 +0200
commitaf4ce602e4e78dd3655b0a24348b9e256d62e171 (patch)
tree1cf4be8d002f296d12a61b7c6afe79f6877ef03f
parent8e904346350cff0453c8bcd524a40a631fc05485 (diff)
Fix bug in cc rules matching
-rw-r--r--build2/cc/link-rule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx
index b7ecd85..20ae0ae 100644
--- a/build2/cc/link-rule.cxx
+++ b/build2/cc/link-rule.cxx
@@ -132,7 +132,7 @@ namespace build2
// then we shouldn't try to handle that (it may need to be compiled,
// etc). But we assume everyone can handle a C header.
//
- else if (p.is_a<cc> () && !p.is_a<h> ())
+ else if (p.is_a<cc> () && !(x_header (p) || p.is_a<h> ()))
{
l4 ([&]{trace << "non-" << x_lang << " prerequisite " << p
<< " for target " << t;});