aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/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/cxx/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/cxx/target.cxx')
-rw-r--r--build2/cxx/target.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/cxx/target.cxx b/build2/cxx/target.cxx
index 3431bc4..bdfa609 100644
--- a/build2/cxx/target.cxx
+++ b/build2/cxx/target.cxx
@@ -16,7 +16,7 @@ namespace build2
const target_type hxx::static_type
{
"hxx",
- &file::static_type,
+ &cc::static_type,
&target_factory<hxx>,
nullptr, /* fixed_extension */
&target_extension_var<var_extension, hxx_ext_def>,
@@ -30,7 +30,7 @@ namespace build2
const target_type ixx::static_type
{
"ixx",
- &file::static_type,
+ &cc::static_type,
&target_factory<ixx>,
nullptr, /* fixed_extension */
&target_extension_var<var_extension, ixx_ext_def>,
@@ -44,7 +44,7 @@ namespace build2
const target_type txx::static_type
{
"txx",
- &file::static_type,
+ &cc::static_type,
&target_factory<txx>,
nullptr, /* fixed_extension */
&target_extension_var<var_extension, txx_ext_def>,
@@ -72,7 +72,7 @@ namespace build2
const target_type mxx::static_type
{
"mxx",
- &file::static_type,
+ &cc::static_type,
&target_factory<mxx>,
nullptr, /* fixed_extension */
&target_extension_var<var_extension, mxx_ext_def>,