aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-09 13:09:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-09 13:09:18 +0200
commit8e904346350cff0453c8bcd524a40a631fc05485 (patch)
treef096ad1e87d8a814c6e00c179c8849ed646e0989 /build2/cc/target.cxx
parentba8ce9226af026f873883b7d4e29079bbfece586 (diff)
Tighten cc rules matching
Specifically, make sure the rule does not match if there is a c-common prerequisites that it doesn't recognize.
Diffstat (limited to 'build2/cc/target.cxx')
-rw-r--r--build2/cc/target.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cc/target.cxx b/build2/cc/target.cxx
index 7039728..981f4d7 100644
--- a/build2/cc/target.cxx
+++ b/build2/cc/target.cxx
@@ -30,7 +30,7 @@ namespace build2
const target_type h::static_type
{
"h",
- &file::static_type,
+ &cc::static_type,
&target_factory<h>,
nullptr, /* fixed_extension */
&target_extension_var<var_extension, h_ext_def>,