From af4ce602e4e78dd3655b0a24348b9e256d62e171 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Jan 2019 13:38:03 +0200 Subject: Fix bug in cc rules matching --- build2/cc/link-rule.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/cc/link-rule.cxx') 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 () && !p.is_a ()) + else if (p.is_a () && !(x_header (p) || p.is_a ())) { l4 ([&]{trace << "non-" << x_lang << " prerequisite " << p << " for target " << t;}); -- cgit v1.1